您的位置:首页 > 数据库 > MySQL

Warning: World-writable config file '/usr/local/mysql51/my.cnf' is ignored

2014-06-19 15:12 288 查看
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

本文出自 “红色石头” 博客,请务必保留此出处http://heishi317.blog.51cto.com/4301036/1428217
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐