一、重新启动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