我是靠谱客的博主 快乐彩虹,最近开发中收集的这篇文章主要介绍InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions【mysql5.7启动错误】,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
错误信息
2019-11-26T08:17:13.609094Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-26T08:17:13.620110Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2019-11-26T08:17:13.620128Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2019-11-26T08:17:13.620133Z 0 [ERROR] InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions
2019-11-26T08:17:13.620141Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2019-11-26T08:17:14.235038Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-11-26T08:17:14.235117Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-11-26T08:17:14.235136Z 0 [ERROR] Failed to initialize builtin plugins.
2019-11-26T08:17:14.235148Z 0 [ERROR] Aborting
解决方案:关闭SELinux
临时关闭
##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
setenforce 0
3、永久关闭
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
设置后需要重启才能生效
最后
以上就是快乐彩虹为你收集整理的InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions【mysql5.7启动错误】的全部内容,希望文章能够帮你解决InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions【mysql5.7启动错误】所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复