mysql无法启动ERROR! MySQL is running but PID file could not be found ?
Posted THISISPAN
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql无法启动ERROR! MySQL is running but PID file could not be found ?相关的知识,希望对你有一定的参考价值。
第一种方法:可能是硬盘满了,清理下垃圾文件。
第二种:
查看下数据库运行状态
/etc/init.d/mysql status提示
ERROR! MySQL is running but PID file could not be found
先打印MYSQL进程
ps aux | grep mysql
然后KILL进程
kill -9 pid1 pid2 …
再启动MYSQL
/etc/init.d/mysql start
再检查mysql运行状态
/etc/init.d/mysql status
提示成功
第三种:是修改过my.cnf配置出错引起 执行命令:vi /etc/my.cnf 修改内容:
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
在执行第二种命令,OK
以上是关于mysql无法启动ERROR! MySQL is running but PID file could not be found ?的主要内容,如果未能解决你的问题,请参考以下文章