0

ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists

I got the following error when checking the status of MySQL, and if i restart the MySQL also returns the same one.....

 # service mysql status
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists

 # service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL.... ERROR! The server quit without updating PID file

isaiah
asked Feb 7, 2017
3 Answer
1

Run the below command to remove the lock file and restart the service.

# rm /var/lock/subsys/mysql

If not started then it means that MySQL was not stopped properly, so check it with ps or lsof command and kill it.

Once it is done, restart the service and check. It will work fine..!!!

View More
jagannatharumugam
answered Feb 12, 2017
0

If you are facing this error try to run this command"# rm /var/lock/subsys/mysql" I think this will solve your error easily.

Available here https://shavonyagroup.com Contractor Services in Brooklyn NY

View More
ayesy
answered Jul 6, 2023
0

Thanks for help!

https://emirates.estate/

View More
JamesLens
answered Sep 18, 2023
Your Answer
||||
 
100:0

Related News in ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists

Related News in ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists