Home  >  Article  >  Database  >  Starting MySQL.The server quit without updating PID file (/v_MySQL

Starting MySQL.The server quit without updating PID file (/v_MySQL

WBOY
WBOYOriginal
2016-06-01 13:08:311255browse

项目中的用户角色不知道为什么无缘无故甘丢失了,所以就决定更改一下数据库密码,但好不幸更改后,重启时报出这个异常,
Java代码  收藏代码

  1. Starting MySQL..The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid  

于是去查看mysql日志(在/var/lib/mysql目录下有个err文件的)
Java代码  收藏代码
  1. InnoDB: using the same InnoDB data or log files.  
  2. InnoDB: Unable to lock ./ibdata1, error: 11  


于是打算杀死进程再重启,lsof -i:3306,没有进程,后来上网google一翻参考了几篇文章都不能实现有些说修改my.cnf文件等等的,都没效,后来看到一篇文章说:

Java代码  收藏代码
  1. 今天启动mysql出现了这个错误,很奇怪,按照提示,  
  2.   
  3. ps -ef|grep mysqld ,居然发现服务器里有一个僵尸进程mysqld,启动kill -9  进程号,  
  4.   
  5. 然后重新启动mysql,一切恢复正常。  


于是打上ps -ef|grep mysqld,真的发现有一个进程号,kill于就能正常启动了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn