mysql启动时报报如下错
/mysql51/share/mysql/mysql.server start --user=root
Warning: World-writable config file '/usr/local/mysql51/my.cnf' is ignored
Warning: World-writable config file '/usr/local/mysql51/my.cnf' is ignored
Starting MySQL. [ OK ]
原因是my.cnf权限设置的太大,mysql忽略了my.cnf配置文件,采取的默认参数启动的
chmod 644 my.cnf
这种情况下如果启动过mysql
mysql的err日志存在如下错误日志
/usr/local/mysql51/libexec/mysqld: File './mysql-bin.000002' not found (Errcode: 13)
140619 15:08:55 [ERROR] Failed to open log (file './mysql-bin.000002', errno 13)
140619 15:08:55 [ERROR] Could not open log file
140619 15:08:55 [ERROR] Can't init tc log
140619 15:08:55 [ERROR] Aborting
140619 15:08:55 InnoDB: Starting shutdown...
140619 15:09:00 InnoDB: Shutdown completed; log sequence number 0 1176387
140619 15:09:00 [Note] /usr/local/mysql51/libexec/mysqld: Shutdown complete
执行chgrp -R mysql /usr/local/mysql51/var/*
重启mysql