Home > Database > Mysql Tutorial > "log_bin.index not found" 启动报错解决_MySQL

"log_bin.index not found" 启动报错解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 14:00:32
Original
1307 people have browsed it

my.cnf 中设置了:

log-bin=log_bin
log-bin-index=log_bin.index

但是启动后,总是报告如下错误:

mysqld: File './log_bin.index' not found (Errcode: 13)
070428 14:35:59 [ERROR] Aborting

070428 14:35:59 [Note] mysqld: Shutdown complete

自己 touch 一个文件出来,不行。
修改文件 log_bin.index 的权限为 777,也不行。

[root@localhost]#/usr/local/mysql/bin/perror 13

System error:  13 = Permission denied

看来还是权限的问题,突然想起来 datadir 权限设置可能不对。

[root@localhost]#ls -l /usr/local/mysql | grep data

drw-------   3 nobody nobody  4096 Apr 29 11:17 data

果然,没有 X 权限,于是把该目录加上 X 权限:

[root@localhost]#chmod 700 /usr/local/mysql/data

再次启动,一切ok

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template