mysql password?

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
hakmir
Forum Newbie
Posts: 5
Joined: Tue Sep 02, 2008 4:02 pm

mysql password?

Post 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.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: mysql password?

Post by Mds »

Well, please write your php code.
Above Error appears when you wanted connect to mysql by wrong password.
hakmir
Forum Newbie
Posts: 5
Joined: Tue Sep 02, 2008 4:02 pm

Re: mysql password?

Post 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
hakmir
Forum Newbie
Posts: 5
Joined: Tue Sep 02, 2008 4:02 pm

Re: mysql password?

Post by hakmir »

All I want is to open PHPmyadmin window
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: mysql password?

Post by Mds »

Well you should enter the new password one in phpmyadmin's login page. :!:
hakmir
Forum Newbie
Posts: 5
Joined: Tue Sep 02, 2008 4:02 pm

Re: mysql password?

Post 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.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: mysql password?

Post by Mds »

By the way phpmyadmin's login page didn't even appear.
Well you should delete you cookies, then you can see it .
Post Reply