zoukankan      html  css  js  c++  java
  • 启动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!

    问题成功解决。

  • 相关阅读:
    公司真题-字节跳动
    全素组探求
    枚举
    求n个整数的最大公约数
    Ajax技术
    读文本文件
    JSTL标签库
    URL跟URi的区别
    常用的JSTL标签
    EL表达语言
  • 原文地址:https://www.cnblogs.com/zejin2008/p/4677315.html
Copyright © 2011-2022 走看看