mysql 啓動錯誤-server PID file could not be found

[root@centos var]# service mysqld stopmysql

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     10353  0.0  1.0 344360 39464 ?        Sl   13:43   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/irxpert-test.err --pid-file=/var/lib/mysql/irxpert-test.pid
root     11884  0.0  0.0  63384   760 pts/1    S+   15:44   0:00 grep mysq*
若是看到上面的內容,那說明,Mysql的進程卡死了,這時用就要把這些卡死的進程都關閉
[root@centos mysql]# kill  10274
[root@centos mysql]# kill  10353
啓動Mysqlok
[root@centos mysql]# service mysql start
Starting MySQL.                                            [  OK  ]
相關文章
相關標籤/搜索