当我的服务器没有正常关闭时,一切都开始了。在下次启动时,mysql无法启动,因此我尝试使用service mysql restart
启动它,但失败并说Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
http://hastebin.com/uyijoquyol.coffee http://hastebin.com/fekepowuzi.avrasm
我感觉数据库已损坏。有没有办法将文件修复到正常工作状态?
答案 0 :(得分:0)
您似乎有一个权限问题,首先:
160325 18:39:20 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: 'create'.
InnoDB: Cannot continue operation.
看看这里:
Mysql won't start - ibdata1 corrupt? - operating system error number 13 - permissions issue
此致