MySQL DOWN and Errors ?
October 6th, 2009
/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!
Solution::
step by step
login via ssh
run the commands as follows:
killall mysqld
safe_mysqld –skip-grant-tables &
/usr/local/cpanel/startup
Then login into WHM reset the MySQL root
password.
go back to ssh…
killall mysqld
/etc/rc.d/init.d/mysql start