Using lsof command to ensure which program has the lock,
# lsof | grep mysql
Check mysql status whether is it running on
# /etc/init.d/mysql status
mysql is not running but lock exists
mysql is not running but lock exists
To sovled this error removing the mysql lock file and try to start again,
# rm /var/lock/subsys/mysql
rm: remove regular empty file `/var/lock/subsys/mysql’? y
# /etc/init.d/mysql start
Starting MySQL............... SUCCESS!
rm: remove regular empty file `/var/lock/subsys/mysql’? y
# /etc/init.d/mysql start
Starting MySQL............... SUCCESS!
I hope your MySQL server is starting without any problem.
Comments (0)