Chinaunix首页 | 论坛 | 博客
  • 博客访问: 311433
  • 博文数量: 96
  • 博客积分: 230
  • 博客等级: 二等列兵
  • 技术积分: 722
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-13 22:25
个人简介

心安处即吾乡!

文章分类

全部博文(96)

文章存档

2016年(1)

2014年(79)

2013年(7)

2012年(9)

我的朋友

分类: LINUX

2014-04-17 20:04:34

近来FreeBSD机器上的mysql服务重启、登录mysql、使用mysqldump备份数据库时报以下错误:
Warning: World-writable config file '/etc/my.cnf' is ignored
解决方案:
This is  just a waring and can be ignored but here is the solution how to fix it
这仅仅是一个警告,并且可以被忽略。但下面是修复它的解决方案。

MySQL is deliberately ignoring your config file (my.cnf) as a safety precaution because the file can be over-written by a malicious user.
MySQL有故意忽略你的配置文件(my.cnf)作为一种安全预防措施,因为该文件是能被恶意用户重写的。

To see the file’s permissions, use the following command.
查看该文件的权限,使用如下命令
ls -l /etc/my.cnf
in response, you will see:
你能看到以下结果
-rw-r–r– 1 4998 Apr 2 2010 /etc/my.cnf【注意:此处是最后需要修改成的权限,而你看到的应该是下面描述的两种权限】

If the first part of the line looks like “-rw-rw-rw-” or “rwxrwxrwx”, the file’s permissions are “World-writable”.
如果第一部分类似“-rw-rw-rw-” 或者 “rwxrwxrwx”,那么该文件的权限就是全局可写的。

To fix this problem, use the following command to change file’s permissions
要修改该问题,使用以下命令更改该文件的权限。

chmod 644 /etc/my.cnf
阅读(939) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~