Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm running a ubuntu 10.10 server, and have installed phpmyadmin via apt so that I can easily keep it up to date.

The install went well, and I can access the site, however when I try to log in I get an error:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

The strange part is that the username and password are correct - logging in with the same credentials via the command line interface works just fine.

Phpmyadmin was configured automatically by apt using db-conf if I recall correctly.

Any suggestions on why phpmyadmin is misbehaving this way?

share|improve this question

1 Answer 1

Maybe db-conf configured phpMyAdmin different than expected and now it tries to connect to MySQL not on localhost but some public IP. Check config for dbhost not equal localhost or

grep -E 'host|dbserver' /etc/phpmyadmin/config.inc.php
share|improve this answer
Unfortunately, that's not it. The config.inc.php sets the dbserver to localhost if it is empty in config-db.php, which it is. –  Zxaos Jul 28 '11 at 15:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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