MySQL Forums
Forum List  »  Newbie

how do I connect to MySql without password?
Posted by: sudheshna aaa
Date: March 24, 2005 05:26PM

Team,

I have given a password to root user. But I want to connect to the databases in the MySql without password during development. How do I do that? I am asking this question because I am having the following problem when I tried to connect thru php :

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: NO) in C:\Program Files\Apache Group\Apache\htdocs\testmysql.php on line 5
connect error: Access denied for user 'root'@'localhost' (using password: NO)

My php code:
mysql_connect("localhost", "root") or die("connect error: ".mysql_error ());

Thank you very much for your help.

Options: ReplyQuote


Subject
Written By
Posted
how do I connect to MySql without password?
March 24, 2005 05:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.