码迷,mamicode.com
首页 > 数据库 > 详细

启动Mysql时发生的一个关于PID文件错误问题

时间:2015-07-26 15:23:19      阅读:453      评论:0      收藏:0      [点我收藏+]

标签:

 
今天启动mysql时出现了如下错误:
[root@host1 /]# service mysql start
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/host1.pid).

 

查看错误日志:
[root@host1 /]# cat /var/log/mysqld.err | less
2015-07-26 11:09:55 3463 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
2015-07-26 11:09:55 3463 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
2015-07-26 11:09:55 3463 [ERROR] Aborting

 

经排查,原因是文件权限在复制移动时被改动到了,属权限的问题,执行:
[root@host1 /]# chown -R mysql:mysql /var/lib/mysql/

[root@host1 /]# service mysql start
Starting MySQL.. SUCCESS!

 

问题成功解决。

 

 

启动Mysql时发生的一个关于PID文件错误问题

标签:

原文地址:http://www.cnblogs.com/zejin2008/p/4677315.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!