mysql故障(程序正在運行卻找不到PID文件)


[root@slave ~]# /etc/init.d/mysql status
ERROR! MySQL is running but PID file could not be found

[root@slave ~]# ps aux|grep mysql
root       1145  0.1  0.2 108432  1320 ?        S    13:41   0:01 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/mysql/data --pid-file=/mysql/data/slave.pid
root      10917  0.0  0.1 103252   832 pts/0    S+   13:51   0:00 grep mysql
root      10918  0.0  0.1 108432   700 ?        S    13:51   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/mysql/data --pid-file=/mysql/data/slave.pid
root      10921  0.0  0.1 103252   836 ?        S    13:51   0:00 grep /usr/local/mysql/bin/mysqld\>
root      10922  0.0  0.1 103252   840 ?        S    13:51   0:00 grep -c pid-file=/mysql/data/slave.pid
[root@slave ~]# kill  -9 1145

[root@slave ~]# /etc/init.d/mysql restart
ERROR! MySQL server process #11890 is not running!
Starting MySQL... SUCCESS!
[root@slave ~]# /etc/init.d/mysql status
SUCCESS! MySQL running (12312)

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM