Home  >  Article  >  Database  >  Mysql服务器无法启动的原因简析_MySQL

Mysql服务器无法启动的原因简析_MySQL

WBOY
WBOYOriginal
2016-06-01 13:42:45966browse

bitsCN.com
Mysql服务器无法启动,错误日志中提示:
 ^G/usr/local/mysql/bin/mysqld: File './mysql-bin.000013' not found (Errcode: 13)120415  8:59:10 [ERROR] Failed to open log (file './mysql-bin.000013', errno 13)120415  8:59:10 [ERROR] Could not open log file120415  8:59:10 [ERROR] Can't init tc log120415  8:59:10 [ERROR] Aborting    ==============================一查看是mysql-bin.000013文件的权限变为了:-rw-rw---- 1 root root       126 Apr 15 00:10 mysql-bin.000013 原因是我上次使用了"/usr/local/mysql/bin/mysqld_safe --user=root &"启动mysqld,所以产生的binlog文件权限变为root。提醒一下启动mysql最好不要使用root用户,官方文档提倡用非root用户启动;   作者 rover0 bitsCN.com

Statement:
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