mysql无法启动ERROR! MySQL is running but PID file could not be found ?

第一种方法:可能是硬盘满了,清理下垃圾文件。

第二种:

查看下数据库运行状态

/etc/init.d/mysql status
提示
ERROR! MySQL is running but PID file could not be found
先打印MYSQL进程
ps aux | grep mysql
然后KILL进程
kill -9 pid1 pid2 …
再启动MYSQL
/etc/init.d/mysql start
再检查mysql运行状态
/etc/init.d/mysql status

提示成功

第三种:是修改过my.cnf配置出错引起 执行命令:vi /etc/my.cnf  修改内容:

# The MySQL server
    [mysqld]
    port   = 3306
   socket  = /var/lib/mysql/mysql.sock

在执行第二种命令,OK
  

时间: 2024-10-07 20:41:44

mysql无法启动ERROR! MySQL is running but PID file could not be found ?的相关文章

无法启动mySQL解决办法,MySQL is running but PID file could

今天一个客户网站出现无法连接mysql,多方查找原因,原来是空间不足导致. 启动MySQL时,一直停在 MySQL Started.................... 查看状态,结果显示:MySQL is running but PID file could not be found 清理一下磁盘,重启mySQL,一切正常! 要清理的内容: 1.nginx 的日志文件,一般在/home/wwwlogs 文件夹里. 2. MySQL日志文件,一般放在/usr/local/mysql/var文件

centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

今天在centOS下装mysql时出现了一个错误: 解决方案就是如图所示kill 4734 kill 4839 最后再执行[[email protected] src]# service mysql start就可以了 centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

ERROR! MySQL is running but PID file could not be found

/etc/init.d/mysql status提示ERROR! MySQL is running but PID file could not be found先打印MYSQL进程ps aux | grep mysql然后KILL进程kill -9 pid1 pid2 …再启动MYSQL/etc/init.d/mysql start再检查mysql运行状态/etc/init.d/mysql status

Multiple MySQL running but PID file could not be found

[[email protected] Desktop]# service mysql start Starting MySQL SUCCESS! [[email protected] Desktop]# service mysql status ERROR! Multiple MySQL running but PID file could not be found (4458 4245) 提示如上所述.解决办法: [[email protected] Desktop]# kill 4458 [

redhat下安装mysql 5.6.20,解压zip包,查看已经安装过的mysql,卸载rpm安装包,安装mysql服务器端和客户端,修改mysql用户名,登陆mysql,启动关闭mysql

 1 将相关的mysql rpm包上传到redhat上 2  我的电脑是Redhat 6.*版本,所以这里使用上面一个 3  解压zip包 4  安装以下几个rpm MySQL-client-advanced-5.6.20-1.el6.x86_64.rpm MySQL-server-advanced-5.6.20-1.el6.x86_64.rpm 5  查看已经安装过的mysql rpm –aq | grep mysql 结果: mysql-libs-5.1.66-2.el6_3.x86_6

lnmp下启动mysql报错 The server quit without updating PID file

启动时候错误代码:Starting MySQL[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed! lnmp作者军哥给的解答是:     这里面没有任何错误信息,按[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid     这个看可能又另外安装了mysql或存在其他

MySQL数据库出现The server quit without updating PID file.

LNMP1.0可以在Linux系统下快速搭建PHP环境,以前操作其它服务器也用过LNMP环境,重未出现过类似错误,现将解决过程记录一下. 一.服务器环境 操作系统:CentOS-6.4 服务器环境:集成环境LNMP1.0 二.步骤重现 1.安装LNMP1.0,具体操作方法见这里,安装成功: 2.因个人需求,现将MySQL数据库存放在/data/mysql/var,修改/etc/my.cnf的datadir=/data/mysql/var,别忘了将/var目录的权限设置为chown -R mysq

mysql服务启动脚本详解

1 #!/bin/sh 2 # Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB 3 # This file is public domain and comes with NO WARRANTY of any kind 4 5 # MySQL daemon start/stop script. 6 7 # Usually this is put in /etc/init.d (at lea

centos6.5 mysql开机启动

可参考:centos6.5 nginx开机启动 /etc/init.d/下添加mysqld文件,内容如下: #!/bin/sh # Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB # This file is public domain and comes with NO WARRANTY of any kind # MySQL daemon start/stop script. # Us