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 ?的主要内容,如果未能解决你的问题,请参考以下文章
mysql 当我在MS-DOS输入net start mysql,显示了error2185 the srevice name is invalid
ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server
ERROR 1130 (HY000): Host 'test177' is not allowed to connect to this MySQL server
MYSQL启动报1067错误,系统日志中是“服务 mysql 意外停止” Mysql日志中则是:“Plugin 'FEDERATED' is disabled”
MySql Table错误:is marked as crashed and last (automatic?) 和 Error: Table "mysql"."inno