1

I'm using phpMyAdmin on CentOS v6. Configured it to authentication type: cookie, I set username and password. (in /etc/phpMyAdmin/config.inc.php)

When I browse to http ://my-server/phpMyAdmin/ I get a web login form, I entered the username and password that I worte in the configuration file but it tells:

#1045 Cannot log in to the MySQL server

I looked after the following guide: http://ifzenelse.net/en/install-and-configure-phpmyadmin-centos

2 Answers 2

0

There was a conflict: the phpMyAdmin configuration that says to not allow login without a password ($cfg['Servers'][$i]['AllowNoPassword']= FALSE;), but my mysql user (root) had no password so I couldn't login!

So as mentioned in one of the answers here I had to set password to the root user by:

# mysqladmin -u root password your-password

Then restart servers and login again

0

Following steps would help you to login phpmyadmin without password.

  1. Search for config.inc.php in phpmyadmin package. If not found, rename config.sample.inc.php to config.inc.php
  2. Search $cfg['Servers'][$i]['AllowNoPassword'] = false; and make it $cfg['Servers'][$i]['AllowNoPassword'] = true;

Now you would be able to login successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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