MySQL server PID file could not be found!   ,今天所遇到的问题

今天在编译安装MySQL的时候出现报错,报错信息如下

[[email protected] mysql]# service mysql start

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

查看报错日志信息如下:

140627 11:31:43 [ERROR] Fatal error: Can‘t open and lock privilege tables: Table ‘mysql.host‘ doesn‘t exist

140627 11:31:43 mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended

140627 11:32:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

/usr/local/mysql/bin/mysqld: Table ‘mysql.plugin‘ doesn‘t exist

140627 11:32:21 [ERROR] Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.

于是Google之,大部分的答案都是:

1. 注释/etc/my.cnf里的skip-federated注释掉即#skip-federated;

2. my.cnf文件配置过高,重新定义其中的参数(根据服务器情况定义);

3. 杀掉mysql_safe和mysqld进程,然后再重启;

4. 当前日志文件过大,超出了my.cnf中定义的大小(默认为64M),删除日志文件再重启;

5. 其他情况,查看日志文件(我的是localhost.localdomain.err,具体因人而异),然后具体分析;

但是,问题还是没有解决!!!卧槽

————————————————华丽的分割线——————————————————————

蓦然间在看这个问题的解决办法的评论中看到了下面的这条命令:重新初始化库

[[email protected] mysql]# /usr/local/mysql/scripts/mysql_install_db --user=mysql

[[email protected] mysql]# service mysqld restart

MySQL server PID file could not be found!                  [失败]

Starting MySQL..                                           [确定]

我日,这还真他妈把问题解决了。

MySQL server PID file could not be found!   ,今天所遇到的问题,布布扣,bubuko.com

时间: 2024-08-04 02:03:26

MySQL server PID file could not be found!   ,今天所遇到的问题的相关文章

MySQL启动错误ERROR! MySQL server PID file could not be found的解决办法

/etc/init.d/mysql start无法启动mysql错误信息如下: ERROR! MySQL server PID file could not be found! Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/AYXXXXXXXXXXX.pid). 完整日志信息如下: 140902 18:11:33 mysqld_safe Starting mysqld

MySQL server PID file could not be found!

重启mysql提示MySQL server PID file could not be found! Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid). 我只能呵呵了吗?不是. 我是这样做的,先看下是不是有这个进程,然后结束,再重启,代码: ps -ef|grep mysqld kill -9 进程号 你要是没解决?好吧,继续: (解决方法:一个个试!) 1.

mysql 服务重启报MySQL server PID file could not be found!*pid...

今天只是想发表个感慨,同时将这部分教训写出来,让大家有个经验,很简单的mysql数据库搭建,网上有很多安装教程,不用多说. 我只是把我安装后遇到的问题写出来,给自己提个醒,MySQL数据库装完之后(是卸载删除了以前的mysql重装的),我就直接启动mysql服务,service mysql restart ,发现报出如下错误. [[email protected] mysql]# service mysql restartMySQL server PID file could not be fo

ERROR! MySQL server PID file could not be found!的解决方法

启动MySQL服务 [[email protected] vhosts]# /etc/init.d/mysqld restart 提示错误: ERROR! MySQL server PID file could not be found!Starting MySQL... ERROR! The server quit without updating PID file (/alidata/server/mysql/data/test.pid). 在/alidata/server/mysql/da

mysql(5)-MySQL server PID file could not be found!

重启mysql提示MySQL server PID file could not be found! Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid). 我只能呵呵了吗?不是. 我是这样做的,先看下是不是有这个进程,然后结束,再重启,代码: ps -ef|grep mysqld kill -9 进程号 你要是没解决?好吧,继续: (解决方法:一个个试!) 1.

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

一.重新启动mysql数据库 [[email protected] ~]# service mysqld restartShutting down MySQL.[  OK  ]Starting MySQL.The server quit without updating PID file (/application/mysql-5.5.32/data/localhost.localdomain.pid).[FAILED] 二.停止mysql数据库 [[email protected] ~]# s

解决 MySQL manager or server PID file could not be found! 的方法

[[email protected] var]# service mysqld stop MySQL manager or server PID file could not be found!       [FAILED] 解决办法: 首先查看一下进程 [[email protected] mysql]# ps aux |grep mysq* root      2643  0.0  0.2   4536  1224 ?        S    01:09   0:00 /bin/sh /us

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

[[email protected] mysql-5.1.65]# /etc/init.d/mysqld restartMySQL manager or server PID file could not be found![FAILED] 解决办法 第一,先删除rm -rf /var/lib/mysql,然后重新初始化 /usr/local/mysql/bin/mysql_install_db --user=mysql MySQL manager or server PID file coul

MySQL提示:The server quit without updating PID file问题的解决办法

今天网站web页面提交内容到数据库,发现出错了,一直提交不了,数找了下原因,发现数据写不进去!第一反应,重启mysql数据库,一直执行中,停止不了也启动不了,直觉告诉我磁盘满了 ! 用df命令查了下,果然磁盘满了,因为当时分区采用系统默认,不知道为什么不能自动扩容!以后在处理这个问题!如图所示: 复制代码 代码如下: [[email protected] ~]# df文件系统                 1K-块      已用      可用 已用% 挂载点/dev/mapper/vg_s