mysqld: File ‘./binlog.index‘ not found (OS errno 13

编程入门 行业动态 更新时间:2024-10-14 10:44:00

mysqld: File ‘./<a href=https://www.elefans.com/category/jswz/34/1761093.html style=binlog.index‘ not found (OS errno 13"/>

mysqld: File ‘./binlog.index‘ not found (OS errno 13

问题背景

Centos7 安装Mysql 8后启动时遇到的问题,看了好几个博客方案无效,搞了半小时才找到正解,在此次进行记录。
在此假设你已经修改了对应目录的权限,比如配置的mysql data目录初始化后已经执行了chown -R mysql:mysql /XXX/data

问题呈现

启动失败后systemctl status mysqld查看状态如下


查看启动日志信息 /var/log/mysqld.log 如下

2023-10-20T06:23:20.320468Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql/data/mysqld_tmp_file_case_insensitive_test.lower-test
2023-10-20T06:23:20.320513Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 13397
2023-10-20T06:23:20.323497Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql/data/mysqld_tmp_file_case_insensitive_test.lower-test
2023-10-20T06:23:20.323513Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql/data/mysqld_tmp_file_case_insensitive_test.lower-test
mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2023-10-20T06:23:20.324136Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-10-20T06:23:20.324361Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.34)  MySQL Community Server - GPL.

解决方案

参考这篇博客:.html,

执行selinux 0临时关闭linux安全子系统,修改/etc/selinux/config文件中设置SELINUX=disabled,然后重启或等待下次重启

问题解决

更多推荐

mysqld: File ‘./binlog.index‘ not found (OS errno 13

本文发布于:2023-12-06 07:32:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1666881.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:binlog   File   mysqld   index   errno

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!