mysql...mysql....No mysqld pid file found

arbuzas

Member
Apr 10, 2004
23
0
151
hello,

have problem :rolleyes:
mysql fall, when I tray restart in cPanel I get:
Code:
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").
When restart in SSH:
Code:
]# service mysql restart
No mysqld pid file found. Looked for /var/lib/mysql/my.host.com.pid.
I tray everything what I can find in this forum :eek:
Update cp, update mysql, chage permision, ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock etc... Nothink fix it.

Any one can help with this?
 

electron33

Well-Known Member
Feb 24, 2004
90
0
166
You'll need to kill all mysqld processes and then restart mysql, which will then recreate the socket

killall -9 mysqld
/etc/rc.d/init.d/mysql start