《MYSQL教程mysql无法启动怎么办?mysql-bin权限问题导致mysql无法启动》要点:
本文介绍了MYSQL教程mysql无法启动怎么办?mysql-bin权限问题导致mysql无法启动,希望对您有用。如果有疑问,可以联系我们。
导读:启动mysql时报错误,查看/var/lib/mysql/mydb.err:131227 14:24:01 mysqld_safe mysqld from pid file /var/lib/mysql/richinfo-de...
启动mysql时报错误,查看/var/lib/mysql/mydb.err:
MYSQL实例
131227 14:24:01 mysqld_safe mysqld from pid file /var/lib/mysql/richinfo-dev2.pid ended
131227 14:24:51 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131227 14:24:51 [Warning] Changed limits: max_open_files: 1024 max_connections: 886 table_cache: 64
131227 14:24:51 [Note] Plugin 'FEDERATED' is disabled.
131227 14:24:51 InnoDB: Initializing buffer pool, size = 256.0M
131227 14:24:52 InnoDB: Completed initialization of buffer pool
131227 14:24:52 InnoDB: Started; log sequence number 0 1724594339
/usr/sbin/mysqld: File './mysql-bin.000002' not found (Errcode: 13)
131227 14:24:52 [ERROR] Failed to open log (file './mysql-bin.000002', errno 13)
131227 14:24:52 [ERROR] Could not open log file
131227 14:24:52 [ERROR] Can't init tc log
131227 14:24:52 [ERROR] Aborting
由错误信息可知,是由于找不到mysql-bin.000002文件,但检查该文件是存在的.
MYSQL实例
[root@host1 mysql]# ls mysql-bin.000002
mysql-bin.000002
可能是权限的问题,再次检查:
MYSQL实例
[root@host1 mysql]# ls -al mysql-bin.000002
-rw-rw---- 1 root root 733525 12-27 14:10 mysql-bin.000002
文件属主变成了root,将该文件修改为mysql:
MYSQL实例
chown -R mysql:mysql mysql-bin.000002
如此,mysql便可以正常启动了,问题解决了.MYSQL实例
转载请注明本页网址:
http://www.vephp.com/jiaocheng/6175.html