Access denied for user issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Access denied for user issue

Post by angelic_devil »

i have the db setup thru the phpmyadmin and the php file working too on ym previous pc...recently got anew pc and installed wamp in it and resetup the database...however when i run the php file i get he error

mysql_connect() [function.mysql-connect]: Access denied for user 'tara'@'localhost' (using password: YES)

plz help ...
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: Access denied for user issue

Post by angelic_devil »

i have tried using

GRANT ALL PRIVILEGES ON mydb.* TO 'tara'@'localhost' ;

but no use
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: Access denied for user issue

Post by angelic_devil »

i figured it out...thank god no one's time got wasted on this one
Post Reply