Home > Database > Mysql Tutorial > MySQL不能启动 mysql-bin.index' not found (Errcode: 13)

MySQL不能启动 mysql-bin.index' not found (Errcode: 13)

WBOY
Release: 2016-06-07 17:16:56
Original
4045 people have browsed it

MySQL不能启动 mysql-bin.index

配置复制,添加如下内容到/etc/my.cnf:

log-bin=/var/lib/mysql/binlogs/mysql-bin
max_binlog_size=100M
expire_logs_days=5
sync_binlog=1
binlog_cache_size=1M
binlog-format=ROW

结果重启的时候,报错:

[root@ mysql]# /etc/init.d/mysql restart
Shutting down MySQL.                                       [  OK  ]
Starting MySQL.Manager of pid-file quit without updating fi[FAILED]
[root@ mysql]#

错误信息:

/usr/sbin/mysqld: File '/var/lib/mysql/binlogs/mysql-bin.index' not found (Errcode: 13)
120719  5:50:55 [ERROR] Aborting

原来是因为文件夹权限的问题。刚才新建的目录binlogs是在root下面的。

修改文件夹权限,OK

[root@ mysql]# pwd
/var/lib/mysql
[root@ mysql]# chown -R mysql:mysql binlogs
[root@ mysql]#
[root@ mysql]# /etc/init.d/mysql restart
MySQL manager or server PID file could not be found!       [FAILED]
Starting MySQL.                                            [  OK  ]
[root@ mysql]#

linux

source:php.cn
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