最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
mysql 启动错误提示server PID file could not be found
时间:2016-07-15 编辑:简简单单 来源:一聚教程网
[root@centos var]# service mysqld stop
MySQL manager or server PID file could not be found! [FAILED]
解决办法:
首先查看一下进程
代码如下 | 复制代码 |
[root@irxpert-test /]# ps aux |grep mysq* root 10274 0.0 0.0 68160 1336 ? S 13:43 0:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –pid-file=/var/lib/mysql/irxpert-test.pid |
如果看到上面的内容,那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭
代码如下 | 复制代码 |
[root@centos mysql]# kill 10274 [root@centos mysql]# kill 10353 |
启动Mysql就ok了
代码如下 | 复制代码 |
[root@centos mysql]# service mysql start Starting MySQL. [ OK ] |