mysql无法启动ERROR! MySQL is running but PID file could not be found ?
2013-12-27 18:24
633 查看
第一种方法:可能是硬盘满了,清理下垃圾文件。
第二种:
查看下数据库运行状态
/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
第二种:
查看下数据库运行状态
/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无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- linux无法启动mySQL解决办法,MySQL is running but PID file could not be found
- ERROR! MySQL is running but PID file could not be found
- ERROR! MySQL is running but PID file could not be found ?
- ERROR! MySQL is running but PID file could not be found
- Linux虚拟机的Mysql启动失败 ERROR! Multiple MySQL running but PID file could not be found (
- 将MySQL数据库搬迁到另一服务器中遇到的问题:MySQL is running but PID file could not be found[FAILED]&MySQL大小写
- MySQL is running but PID file could not be found[失败]
- MySQL is running but PID file could not be found(解决方法)
- Linux 下mysql 启动失败 Multiple MySQL running but PID file could not be found (1761 1448)[失败]
- centOS下msyql启动错误-Multiple MySQL running but PID file could not be found
- mysql启动时报错--ERROR! MySQL server PID file could not be found!
- Multiple MySQL running but PID file could not be found
- MySQL启动ERROR! MySQL server PID file could not be found的解决办法