I am useing CentOS 5.5, mysql 5.1, php 5.3, phpmyadmin 3.4.5, I have set my mysql password with

>mysql update mysql.user Password="mypassword" where User="root"

And in phpmyadmin/libraries/config.default.php

Do:

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypassword';

Note: the 2 password are same.

service mysqld restart
service httpd restart

All is returned ok. Then in the phpmyadmin login panel, I type;

username: root
password: mypassword

Enter, It always refreshes the login panel, never login into the database page. No error hint.

Where is the problem?

link|improve this question

feedback

2 Answers

up vote 5 down vote accepted

The problem there is you've put a plaintext password in to a field that is supposed to hold an encrypted password!

Try the following from the MySQL command line:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

and if you access it remotely don't forget:

SET PASSWORD FOR 'root'@'%' = PASSWORD('newpass');

followed by:

FLUSH PRIVILEGES;

That will insert the password encrypted so it can be read, and then clear the privileges cache so it's read freshly again.

link|improve this answer
feedback

If there was an error there should be something in one or more log files. Good luck.

link|improve this answer
2  
This answer would be much more helpful if you listed which log file, and where they are located. – Ben Pilbrow Jan 8 at 22:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.