服务器重启后mysql启动失败,查看日志,异常信息如下
2022-06-13T08:39:28.934545Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2022-06-13T08:39:28.934644Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2022-06-13T08:39:28.934679Z 0 [ERROR] InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions
2022-06-13T08:39:28.934729Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2022-06-13T08:39:29.536857Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-06-13T08:39:29.536933Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-06-13T08:39:29.536961Z 0 [ERROR] Failed to initialize builtin plugins.
2022-06-13T08:39:29.536982Z 0 [ERROR] Aborting
解决办法
setenforce 0
本文由 至简 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:
2022/09/07 03:02