Home > Database > Mysql Tutorial > MySQL: mysql is not running but lock exists 的解决方法_MySQL

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

WBOY
Release: 2016-06-01 13:19:25
Original
1234 people have browsed it

bitsCN.com 启动MySQL出错,查看了下状态,发现提示MySQL is not running,but lock exists:

一个网友说可能和log文件有关,于是将log文件给移除了,再重启MySQL终于OK了

找了下资料,基本上都是说:


# chown -R mysql:mysql /var/lib/mysql
# rm /var/lock/subsys/mysql
# service mysql restart


执行完发现还是这个提示。

因为是在cPanel服务器上,所以又通过命令:


# yum remove mysql mysql-server


将mysql卸载了,然后重新安装:


# /scripts/mysqlup

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template