MySQL manager or server PID file could not be foun

[root@centos var]# service mysqld stop

MySQL manager or server PID file could not be found!      [FAILED]

 解决办法:

 首先查看一下进程如果看到上面的内容,

 [root@localhost Daneil]# ps aux |grep mysq*
root      1591  0.0  0.1   5124  1384 ?        S    13:19   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/localhost.localdomain.pid
mysql     1706  0.2 42.3 780164 436292 ?       Sl   13:19   0:02 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/localhost.localdomain.err --pid-file=/usr/local/mysql/data/localhost.localdomain.pid
root      2698  0.0  0.0   4360   740 pts/0    S+   13:38   0:00 grep mysq*
 那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭  [root@centos mysql]# kill 1591

[root@centos mysql]# kill 1706  启动Mysqlok 

[root@centos mysql]# service mysql start 

Starting MySQL.                                           [ OK ]



你可能感兴趣的:(mysql,liunx)