Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP MySQL error

Status
Not open for further replies.

0x4B47

Programmer
Jun 22, 2003
60
US
Why might I get the following error, and how can it be resolved?

ERROR_BEGIN
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in c:\Inetpub\ on line 9
Can't connect to MySQL server on 'localhost' (10061)
ERROR_END

Any help or suggestions appreciated.

Thanks

KG

01001011 01000111
 
It seems like a pretty straightforward error message. The credentials used by the script did not allow it to login.

Check that you don't have any typos in the username or password your script used.

Check that the username you used exists within MySQL.

Check that the password for the user is correct.

Check that the user is allowed to login from localhost. MySQL user credentials are not the typical 2-tuple of username and password, but rather are a 3-tuple of username, password and client IP address.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top