linux下mysql 启动异常-server PID file could not be found

来源:互联网 发布:苏泊尔淘宝旗舰店 编辑:程序博客网 时间:2024/06/04 01:00
[root@localhost etc]# service mysql stopMySQL manager or server PID file could not be found! [FAILED]解决方法如下:1、使用如下命令查看mysql进程:[root@localhost etc]# ps aux | grep mysqlroot 8625 0.0 0.0 11340 1396 ? S 00:52 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/localhost.localdomain.pidmysql 8890 0.0 1.2 552688 47436 ? Sl 00:52 0:06 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=/var/lib/mysql/localhost.localdomain.pid --socket=/var/lib/mysql/mysql.sock --port=3306root 9333 0.0 0.0 103252 832 pts/0 S+ 02:58 0:00 grep mysql[root@localhost etc]#如果看到上面的内容,那说明,Mysql的进程卡死了,这时就要把这些卡死的进程都杀掉。2、杀掉以上两个进程:[root@localhost etc]# kill -9 8625[root@localhost etc]# kill -9 88903、最后启动mysql就ok了:[root@localhost etc]# service mysql startStarting MySQL. [ OK ]
0 0
原创粉丝点击