Report this

What is the reason for this report?

Why do I often get this error when accessing phpmyadmin?

Posted on October 3, 2016

Hello everyone,

I have a VM from DO, and my distro is Ubuntu 16.04. I have the following software installed: Apache2: 2.4.18 php: 5.6.26 mysql: 5.7.15 phpmyadmin: 4.5.4

I often get this error message on my wordpress site:

Error Establishing a Database Connection

So when I go to check my phpmyadmin and I try to log in I get the following error messages:

This above the login form

#2002 - No such file or directory<br />The server is not responding (or the local server's socket is not correctly configured).

and this under the login form

Connection for controluser as defined in your configuration failed.

Here a screenshot for better illustration phpMyadmin Screenshot

What I have done till now is always restarting my vm to get rid off that problem:

sudo reboot

After rebooting I am able to use my wordpress and phpmyadmin normally without any errors!

But I believe there is a better solution! It’s really frustrating to get that error randomly! Please help me.

Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.