Why do I often get this error when accessing phpmyadmin?
I have a VM from DO, and my distro is Ubuntu 16.04. I have the following software installed:
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
What I have done till now is always restarting my vm to get rid off that problem:
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.