Page 1 of 1

mysql password?

Posted: Tue Sep 02, 2008 4:11 pm
by hakmir
Hi Guys, (I am as new as it can get)

There was no password for mysql and I changed mysql password from phpmyadmin and I made

localhost
root
mypasswd

The things is now I can not access phpmyadmin. It gives this error:


Error
MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)


I don't even know how to change the password from mysql console. Can you help?

Thanks in advance.

Re: mysql password?

Posted: Tue Sep 02, 2008 4:17 pm
by Mds
Well, please write your php code.
Above Error appears when you wanted connect to mysql by wrong password.

Re: mysql password?

Posted: Tue Sep 02, 2008 4:28 pm
by hakmir
when I try to open phpmyadmin from wamp it is probably trying to connect with no password (old one) and of course it can not connect because I changed mysql password to "mypasswd".

My question is :

What should I do to access phpmyadmin or what should I do phpmyadmin to open with new password ("mypasswd") instead of old one (there was no password for old one) "localhost","root"," "

Thanks

Re: mysql password?

Posted: Tue Sep 02, 2008 4:30 pm
by hakmir
All I want is to open PHPmyadmin window

Re: mysql password?

Posted: Tue Sep 02, 2008 4:42 pm
by Mds
Well you should enter the new password one in phpmyadmin's login page. :!:

Re: mysql password?

Posted: Tue Sep 02, 2008 4:48 pm
by hakmir
I solved the problem. I had to change the mysql password in the "config.inc.php" too. :roll:
Thanks a lot anyway. By the way phpmyadmin's login page didn't even appear.

Re: mysql password?

Posted: Tue Sep 02, 2008 5:00 pm
by Mds
By the way phpmyadmin's login page didn't even appear.
Well you should delete you cookies, then you can see it .