ramorse

Well-Known Member
Sep 6, 2003
256
5
168
cPanel Access Level
Root Administrator
MySQL server appears down. Trying to restart it in WHM I get the following error:

/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "mysql has failed").

Any ideas?
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
MySQL server appears down. Trying to restart it in WHM I get the following error:

/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "mysql has failed").

Any ideas?
Please open a ticket @ https://tickets.cpanel.net/submit/
 

Ghulam Yaseen

Well-Known Member
Mar 14, 2008
49
0
56
Karachi,Pakistan
linux thirst

Hello :),

The possible issues with your mysql may be:

--> permission issue at /var/lib/mysql/
/usr/lib/mysql

--> link is not present at /tmp

--> mysql processes are messed

can you kindly come ahead with more info on this:cool:

MySQL server appears down. Trying to restart it in WHM I get the following error:

/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "mysql has failed").

Any ideas?
 

apscinsspl

Well-Known Member
Mar 15, 2008
112
0
66
To start mysql if everthing fails


killall -9 mysqld
cd /etc/rc.d/init.d
safe_mysqld --skip-grant-tables &
CTRL+C
mysqladmin status