MySQL 重新启动出错:MySQL is not running, but lock file (/var/lock/subsys/mysql) exists.
Linux 下:
运行 service mysql status
时出错:
1 | MySQL is not running, but lock file (/var/lock/subsys/mysql) exists |
解决方案: rm -f /var/lock/subsys/mysql
1 | [root@centos65 /]# rm -f /var/lock/subsys/mysql |
重新检查 mysql 状态:
1 | [root@centos65 /]# service mysql status |
若没有启动,可以重新启动 mysql 服务:
1 | [root@centos65 /]# service mysql start |