Ad

grayson
asked Jan 22 2021
Answer
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

linuxhelp
asked Jan 22 2021
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.