Wordpress Admin is not working and nor the PHPmyAdmin

Hello Team,

Website URL: Admin URL:

My website’s admin panel is not working. It is showing wordpress database connection error:

When I try to access the database it says:

Can you please provide some insights that why it is not working? And what solution can be applied to access the database and admin panel of website successfully.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


It looks like that your MySQL database was not running, but it seems OK at the moment.

Usually, if you see that error, I would suggest checking your MySQL service status:

  1. sudo systemctl status mysql

If MySQL is not running you can start it with:

sudo systemctl start mysql

Hope that this helps. Let me know if you have any questions. Regards, Bobby