现在的位置: 首页 > 综合 > 正文

MySQL: mysql is not running but lock exists 的解决方法

2012年07月20日 ⁄ 综合 ⁄ 共 232字 ⁄ 字号 评论关闭

A MySQL crash on Red Hat system resulted with:

/etc/init.d/mysql status

coming back with:

mysql is not running but lock exists

Solved by removing the lock file:

rm /var/lock/subsys/mysql

If this happens again it may also be necessary to remove the pid file from /var/lib/mysql

抱歉!评论已关闭.