教程集 www.jiaochengji.com
教程集 >  数据库  >  mysql  >  正文 mysql 启动错误提示server PID file could not be found

mysql 启动错误提示server PID file could not be found

发布时间:2017-02-12   编辑:jiaochengji.com
教程集为您提供mysql 启动错误提示server PID file could not be found等资源,欢迎您收藏本站,我们将为您提供最新的mysql 启动错误提示server PID file could not be found资源
mysql 启动错误提示server PID file could not be found错误怎么办呢,今天我们来看看碰到此类问题的一个解决办法吧,具体的如下所示。

[root@centos var]# service mysqld stop

MySQL manager or server PID file could not be found!       [FAILED]

解决办法:

首先查看一下进程

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy6218')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy6218>

[root@irxpert-test /]# ps aux |grep mysq*

root    10274  0.0  0.0  68160  1336 ?        S    13:43   0:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –pid-file=/var/lib/mysql/irxpert-test.pid
mysql    10353  0.0  1.0 344360 39464 ?        Sl   13:43   0:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib64/mysql/plugin –user=mysql –log-error=/var/lib/mysql/irxpert-test.err –pid-file=/var/lib/mysql/irxpert-test.pid
root     11884  0.0  0.0  63384   760 pts/1    S    15:44   0:00 grep mysq*

</td></tr></table>

如果看到上面的内容,那说明,Mysql的进程卡死了,这时用就要把这些卡死的进程都关闭

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy8237')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy8237>

[root@centos mysql]# kill 10274

[root@centos mysql]# kill 10353

</td></tr></table>

启动Mysql就ok了

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy6502')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy6502>

[root@centos mysql]# service mysql start

Starting MySQL.               [  OK  ]

</td></tr></table>

您可能感兴趣的文章:
mysql 启动错误提示server PID file could not be found
mysql禁用日志后无法启动问题怎么解
mysql-bin权限问题导致mysql无法启动怎么办
mysql启动故障一例
mysql无法启动怎么办?mysql-bin权限问题导致mysql无法启动
[ERROR] Can't start server: can't create PID file: 问题的解决方法
linux下mysql 5.5.8 源码编译安装
centos下mysql 5.6.13源码安装方法
一次非法关机造成mysql数据表损坏的例子
PHP Warning: file_get_contents failed to open stream解决办法

[关闭]
~ ~