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

[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 ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值