启动Mysql时发生的一个关于PID文件错误问题
今天启动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!
问题成功解决。