I'm running MySQL 5.6.30 - MySQL Community Server (GPL)
on ubuntu-16.04-x86_64
and I'm using phpMyAdmin 4.7.7
.
Sometimes, without doing anything on the Server or phpMyAdmin, I'm getting this error message on my websites:
Connection failed: SQLSTATE[HY000] [2002] Connection refused
When trying to log in into phpMyAdmin I'm getting these four error messages:
#2002 - No such file or directory – The server is not responding (or the local server's socket is not correctly configured).
.
mysqli_real_connect(): (HY000/2002): No such file or directory
.
Connection for controluser as defined in your configuration failed.
.
mysqli_real_connect(): (HY000/2002): No such file or directory
After making a reboot
everything is working fine as normal, there are no error messages any more and I'm able to login into phpMyAdmin.
Why does it happen? Any ideas?