Mysql won't start - ibdata1 corrupt? - operating system error number 13 - permissions issue

前端 未结 14 1756
粉色の甜心
粉色の甜心 2020-12-05 02:29

Server shutdown from power failure.
Mysql will not start now.
Disk is not full. Syslog is below

Oct 11 15:03:31 joe mysqld_safe[24757]: started
Oct 1         


        
14条回答
  •  没有蜡笔的小新
    2020-12-05 03:05

    Error:

    101130 14:42:51 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
    101130 18:07:58 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    101130 18:07:58  InnoDB: Operating system error number 13 in a file operation.
    InnoDB: The error means mysqld does not have the access rights to
    InnoDB: the directory.
    InnoDB: File name ./ibdata1
    InnoDB: File operation call: 'open'.
    InnoDB: Cannot continue operation.
    

    Solution SeLinux SeLinux security:

    [root@localhost ~]# service mysqld restart
    Deteniendo mysqld:                                         [  OK  ]
    Iniciando mysqld:                                          [  FALLÓ  ]
    [root@localhost ~]#  restorecon -R /var/lib/mysql/
    [root@localhost ~]# service mysqld restart
    Deteniendo mysqld:                                         [  OK  ]
    Iniciando mysqld:                                          [  OK  ]
    [root@localhost ~]#
    

提交回复
热议问题