[root@ceshi mysql]#/etc/init.d/mysqld status
mysqld dead but pid file exists
[root@ceshi mysql]#cd /var/run/mysqld
[root@ceshi mysqld]#ll
total 4
-rw-rw-r--. 1 mysql mysql 5 Mar 18 11:59 mysqld.pid
[root@ceshi mysqld]#rm -f mysqld.pid
[root@ceshi mysqld]#/etc/init.d/mysqld status
mysqld dead but subsys locked
[root@ceshi mysqld]#/etc/init.d/mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@ceshimysqld]#mysql -uroot -p
mysqld dead but pid file exists
最新推荐文章于 2021-05-18 16:28:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)