标签:mysql 启动错误-server pid file could not be found
一、重新启动mysql数据库
[root@localhost ~]# service mysqld restart
Shutting down MySQL.[ OK ]
Starting MySQL.The server quit without updating PID file (/application/mysql-5.5.32/data/localhost.localdomain.pid).[FAILED]
二、停止mysql数据库
[root@localhost ~]# service mysqld stop
MySQL server PID file could not be found![FAILED]
三、解决措施:
1. [root@localhost ~]# ps -ef | grep mysql
root 5257 4319 0 20:13 pts/1 00:00:00 mysql -uroot -px xxxxxxxx
root 7535 5289 0 20:28 pts/2 00:00:00 grep mysql
如果看到上面的内容,那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭
2.[root@localhost ~]# kill -9 5257
3.[root@localhost ~]# service mysqld start
Starting MySQL.[ OK ]
4.[root@localhost ~]# ps -ef | grep mysql
root 7556 1 0 20:28 pts/2 00:00:00 /bin/sh /application/mysql-5.5.32/bin/mysqld_safe --datadir=/application/mysql-5.5.32/data --pid-file=/application/mysql-5.5.32/data/localhost.localdomain.pid
mysql 7833 7556 2 20:28 pts/2 00:00:00 /application/mysql-5.5.32/bin/mysqld --basedir=/application/mysql-5.5.32 --datadir=/application/mysql-5.5.32/data --plugin-dir=/application/mysql-5.5.32/lib/plugin --user=mysql --log-error=/application/mysql-5.5.32/data/localhost.localdomain.err --pid-file=/application/mysql-5.5.32/data/localhost.localdomain.pid --socket=/application/mysql-5.5.32/tmp/mysql.sock --port=3306
本文出自 “技术在手,天下我有” 博客,请务必保留此出处http://xin521long.blog.51cto.com/11884590/1833181
mysql 启动错误-server PID file could not be found
标签:mysql 启动错误-server pid file could not be found
原文地址:http://xin521long.blog.51cto.com/11884590/1833181