啟動mysql時報錯:ERROR! MySQL資料庫 is not running, but lock file (/var/lock/subsys/mysql) exists的解決辦法

啟動mysql報錯

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

解決辦法:rm /var/lock/subsys/mysql

[root@mycat-server linux1]# service mysql status;

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

[root@mycat-server linux1]# rm /var/lock/subsys/mysql

rm: remove regular empty file `/var/lock/subsys/mysql' Y

[root@mycat-server linux1]# service mysql status;

ERROR! MySQL is not running

[root@mycat-server linux1]# service mysql start;

Starting MySQL.. SUCCESS!

[root@mycat-server linux1]#

You May Also Like