Warning, no valid mysql.sock file found.mysql has failed

ph33r420

Active Member
Jan 8, 2005
25
0
151
mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").

i'm really new to WHM and i don't knwo what to do.
 

linux-image

Well-Known Member
Jun 8, 2004
1,190
1
168
India
cPanel Access Level
Root Administrator
ssh to server as root.

cd /tmp

ln -s /var/lib/mysql.sock .

that will do..

else restart mysql and try.
 

ph33r420

Active Member
Jan 8, 2005
25
0
151
heh im one step ahead of you. /var/lib/ allready contains mysql.sock.
I've also tried restarting it, and it still doesn't work.
 

ph33r420

Active Member
Jan 8, 2005
25
0
151
/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").
 

autumnwalker

Member
Jan 5, 2005
17
0
151
I am having trouble with mysql as well. I want to get my webhosting company up and going but I can't have any paying customers if mysql keeps failing over and over. My thread also contains more info: http://forums.cpanel.net/showthread.php?t=34062
I have restarted all services and they show that they restart correctly. But in service status, it still shows service as down.

I use WHM 9.9.8 cPanel 9.9.8-R118 FreeBSD 4.9-RELEASE i386 - WHM X v3.1.0 .

Should I update to the cpanel edge version? This is really frustrating. Please help.