Page 1 of 1

Access denied for user issue

Posted: Wed Oct 21, 2009 11:36 pm
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 ...

Re: Access denied for user issue

Posted: Wed Oct 21, 2009 11:49 pm
by angelic_devil
i have tried using

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

but no use

Re: Access denied for user issue

Posted: Thu Oct 22, 2009 12:28 am
by angelic_devil
i figured it out...thank god no one's time got wasted on this one