mysql not getting connected : Access denied for user

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
nehrav
Forum Commoner
Posts: 38
Joined: Sun Sep 20, 2009 6:55 am
Location: New Delhi
Contact:

mysql not getting connected : Access denied for user

Post by nehrav »

Hi guys,

I pick an example from net and try to run that, but on execution I get this

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test'@'localhost' (using password: YES) in C:\wamp\www\example.php on line 11
Access denied for user 'test'@'localhost' (using password: YES)

I can understand that mysql is not getting connected, can anybody tell me how I can fix this.....
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: mysql not getting connected : Access denied for user

Post by jackpf »

Use the right credentials.
Post Reply