By looking on stack overflow questions, i've noticed there are tons of questions about this error, but this time it seems different, the service is working, but sometimes it stop working and show the famous
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
and it last until I reboot the system, or restart mysql service
any suggestion? it's strange because after the reboot the webserver will work for some time, but after a day it will stop.
i'm posting a test to show you what's happening when this problem occurs
root@kiLNX:~# mysql -u XXX -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (111)
root@kiLNX:~# service mysql stop
mysql stop/waiting
root@kiLNX:~# service mysql start
mysql start/running, process 3340
root@kiLNX:~# mysql -u XXX -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.