Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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.
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.×