ITPub博客

首页 > 数据库 > MySQL > MySQL参数文件没有生效

MySQL参数文件没有生效

原创 MySQL 作者:feelpurple 时间:2018-04-23 15:19:55 0 删除 编辑
启动数据库后,发现参数文件没有生效,使用了默认的设置
仔细查看启动命令,发现有Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored的警告

  1. [root@tomcat02 ~]# /home/mysql_software_55/bin/mysqld_safe --defaults-file=/etc/my_55_3306.cnf &
  2. [1] 19032
  3. [root@tomcat02 ~]# Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
  4. Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
  5. 180423 09:18:41 mysqld_safe Logging to '/home/mysql_software_55/data/tomcat02.err'.
  6. 180423 09:18:41 mysqld_safe Starting mysqld daemon with databases from /home/mysql_software_55/data

  7. # 查看参数文件的权限,发现其他组也具有写权限
  8. [root@tomcat02 mysql_software_55]# ll /etc/my_55_3306.cnf
  9. -rw-rw-rw- 1 root root 2252 Apr 23 12:24 /etc/my_55_3306.cnf

  10. # 解决方法,收回其他组的写权限
  11. [root@tomcat02 mysql_software_55]# chmod 644 /etc/my_55_3306.cnf


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-2153234/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-01

  • 博文量
    404
  • 访问量
    1673939