First, restart the MySQL database
[Email protected] ~]# 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]
Second, stop MySQL database
[[Email protected] ~]# service mysqld stop
MySQL server PID file could not being found! [FAILED]
Third, the settlement measures:
1. [[email protected] ~]# 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
If you see the above, that means mysql Process card is dead, then use will be the process of these cards are closed closed
2.[[email protected] ~]# kill-9 5257
3.[[email protected] ~]# service mysqld start
Starting MySQL. [OK]
4. [[email protected] ~]# 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
This article from the "Technology in hand, the world I have" blog, please be sure to keep this source http://xin521long.blog.51cto.com/11884590/1833181
MySQL Startup error-server PID file could not being found