今天启动mysql时出现了如下错误:
[[email protected] /]# service mysql start Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/host1.pid).
查看错误日志:
[[email protected] /]# 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
经排查,原因是文件权限在复制移动时被改动到了,属权限的问题,执行:
[[email protected] /]# chown -R mysql:mysql /var/lib/mysql/ [[email protected] /]# service mysql start Starting MySQL.. SUCCESS!
问题成功解决。
时间: 2024-10-11 10:25:11