Home >Database >Mysql Tutorial >mysql的僵死进程导致不能启动mysql解决_MySQL

mysql的僵死进程导致不能启动mysql解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:38:111181browse

bitsCN.com


mysql的僵死进程导致不能启动mysql解决

 

公司有一台老鸟搭的应用服务器,一般都不去动它,怕出问题,

但是好奇心驱动,还是动了别人的奶酪。    

 

我直接把它给重启了,果然出问题了,数据库启动不了了,

# /etc/init.d/mysql start总是失败。#service httpd start

启动apache,然后又#service httpd stop 停止了apache。

 

cd到zend的bin目录下,zendctl.sh start启动zend环境还是#mysql报这个错:

Starting MySQL.Manager of pid-file quit without updating file.[FAILED]。

 

问同事他总以为我没有关闭数据库就重启了服务器,说是mysql实例神马

的出了问题,他倒腾了一遍也不行,网上找的都说是权限的问题。

 

照着照别人的命令敲了一遍还是不行啊,悲剧啊。

之前问过老鸟说重启服务器mysql数据库会自动重启的,但是没有问他关闭

服务器的时候要不要先关闭mysql数据库的问题啊。

 

所有同事老是以为可能没有关闭数据库就重启了服务器的原因。

我也照着这个原因找办法,用#ps -A | grep mysql竟然有两条

僵死进程,kill -9 进程号,这样杀了mysql的进程,在

# /etc/init.d/mysql start启动数据库成功。
 

bitsCN.com
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