Can't login to phpMyAdmin

May 16, 2016 1.4k views
MySQL WordPress CentOS

I can't login to phpMyAdmin anymore: Cannot log in to the MySQL server

All my sites on the server just show a blank page. There were some odd files in my Wordpress folders, so it seems I'm hacked. Now I'm afraid that they have hacked my databases.

How can I get access to phpMyAdmin? Reset the password? How?

6 Answers

Try this:

  • sudo dpkg-reconfigure phpmyadmin

phpMyAdmin is included in most Linux distributions. It is recommended to use distribution packages when possible - they usually provide integration to your distribution and you will automatically get security updates from your distribution.

I still haven't figured it out. Any ideas how to get into phpmydmin?

  • Maybe this will help you.
    Look inside /etc/phpmyadmin/config-db.php
    I was trying to use root as my login and now the default user is phpmyadmin
    You will find there dbuser and dbpass

I had the same problem. Try looking in /etc/phpmyadmin/config-db.php
I found that the default dbuser is phpmyadmin instead of root

Have another answer? Share your knowledge.