Can't login to phpMyAdmin

Posted May 16, 2016 58.7k views

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers

Try this:

  • sudo dpkg-reconfigure phpmyadmin

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

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?