Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

nabil ragoub

Registered
Sep 1, 2015
2
0
1
maroc
cPanel Access Level
Root Administrator
-Please i have big problem, i have this error
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

-and this log from restart mysql from whm

Code:
Log Messages
150901 07:41:43 mysqld_safe mysqld restarted
150901 07:41:43 mysqld_safe Number of processes running now: 0
/usr/sbin/mysqld[0x84cbc2]
/usr/sbin/mysqld[0x857c7a]
/usr/sbin/mysqld[0x91b362]
/usr/sbin/mysqld[0x926bd8]
/usr/sbin/mysqld[0x9266cf]
/usr/sbin/mysqld[0x883388]
/usr/sbin/mysqld[0x8d004b]
/usr/sbin/mysqld[0x8cfb9a]
150901 7:41:43 [Note] /usr/sbin/mysqld: ready for connections.
150901 07:41:42 mysqld_safe mysqld restarted
150901 07:41:42 mysqld_safe Number of processes running now: 0
/usr/sbin/mysqld[0x84cbc2]
/usr/sbin/mysqld[0x857c7a]
/usr/sbin/mysqld[0x91b362]
/usr/sbin/mysqld[0x926bd8]
/usr/sbin/mysqld[0x9266cf]
/usr/sbin/mysqld[0x883388]
/usr/sbin/mysqld[0x8d004b]
/usr/sbin/mysqld[0x8cfb9a]
150901 7:41:42 [Note] /usr/sbin/mysqld: ready for connections.

mysql has failed. Contact your system administrator if the service does not automagically recover.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello :)

Could you let us know the output from /var/lib/mysql/$hostname.err when restarting MySQL?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Could you post a relevant snippet of the log in CODE tags instead of attaching the log in zip format?

Thank you.