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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP ERROR message

Status
Not open for further replies.

vokez

Programmer
Feb 12, 2013
3
KE
what is the solution to this PHP error displayed when i try to log in "Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES)
 
Looks like you are not using the right username/password - or that there is no user named root.

From the MySQL commandline, which you'll find in [tt]mysql\bin[/tt], you can try it - say your username is root and your password is 1234, you type:

Code:
mysql\bin>mysql -u[b][red]root[/red][/b] -p[b][red]1234[/red][/b]

That can tell you if root/1234 exists.

Best,

Jakob
 
You might also want to check whether the root user if it exists has enough privileges to connect to to mysql from wherever it is you are trying to connect if its not on the same server as the mysql db resides.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top