0

MySQL is not running but lock exists”?

I am getting this error

"MySQL is not running but lock exist"

when I am checking the status of the MySQL server.

MySQL Add a comment
grayson
asked Jan 22 2021

Answer

0

Try using the UNIX lsof command to see which program has the lock

lsof | grep mysql

Try to run lsof on the lock itself

lsof /var/lock/subsys/mysql

Then remove lock

rm /var/lock/subsys/mysql

Add a comment
linuxhelp
asked Jan 22 2021
Post your Answer