`
hizhangqi
  • 浏览: 86593 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Warning: World-writable config file '/etc/my.cnf' is ignored

阅读更多
很管用,本人试用,在mac上

1. 问题描述:

重启mysql服务时出现以下信息:

Warning: World-writable config file '/etc/my.cnf' is ignored

出现这种情况的原因是:mysql故意不让用户重写my.cnf,权限默认是644, 即-rw-r--r--, 如果权限不是644, 则会出现这种情况。

2. 解决方法:

(1) 查看my.cnf文件的权限:

ls -l /etc/my.cnf

信息如下:

cryhelyxx@ada:~$ ls -l /etc/my.cnf
-rw-r--r-- 1 root root 1126  4月 13 16:46 /etc/my.cnf
cryhelyxx@ada:~$

可以看到my.cnf文件权限为644, 如果你的my.cnf文件权限不是"-rw-r--r--", 而是如“-rwxrwxrwx”等等, 则执行以下命令:

sudo chmod 644 /etc/my.cnf

(2) 进入mysql目录下:

cd /usr/local/mysql/

(3) 重启mysql服务:

sudo ./support-files/mysql.server restart

3. OK, Enjoy it!!!
分享到:
评论

相关推荐

    MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法

    在关闭数据库的命令发现mysql关不了,提示Warning: World-writable config file '/etc/my.cnf' is ignored ,大概意思是权限全局可写,任何一个用户都可以写。mysql担心这种文件被其他用户恶意修改,所以忽略掉这个...

    Python库 | drf-writable-nested-0.1.2.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:drf-writable-nested-0.1.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    MySQL数据库常见错误及解决方案

    1.MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored  原因  帮朋友维护服务器,在关闭数据库的命令发现mysql关不了,提示Warning: World-writable config file '/etc/my....

    Python库 | drf-writable-nested-0.3.0.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:drf-writable-nested-0.3.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    MySQL中配置文件my.cnf因权限问题导致无法启动的解决方法

    主要给大家介绍了关于MySQL中配置文件my.cnf因权限问题导致无法启动的解决方法,该无法启动的错误提示代码是:World-writable config file '/etc/my.cnf' is ignored,文中给出了详细的解决方法,需要的朋友们下面来...

    delphi 7 gif控件

    // Delphi 7 version is now assumed if unknown compiler version is unknown // // for better compatibility with future Delphi versions. // // Hopefully this code is now compatible with future Delphi ...

    samba的编译安装20160615_1154.7z

    sudo ./configure --prefix=/usr/local/samba-4.1.6 make make install sudo make install 注意:4.x版本的samba的build system是基于python的,必须安装有python2.5版本以上。(python3.x系列的不行) 如果系统...

    TinyTeX-1.tar.gz

    macos 可能出错:add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/liutz/Library/TinyTeX/bin/universal-darwin..... 解决办法:(终端输入) sudo mkdir -p /usr/local/bin sudo ...

    Python库 | drf-writable-nested-0.4.2.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:drf-writable-nested-0.4.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    在RHEL3上安装ORALCE9I

    Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue. : Success [oracle@test oraclelinux]$ ll /software/oraclelinux/install/unzip -rw-r--r--...

    SuperSU-v2.8.2.zip

    $ ./emulator -avd Pixel_XL_API_23 -writable-system #回车后会有一条警告,无视即可 emulator: WARNING: System image is writable 如果出现警告,说明成功。 二、安装SuperSU.apk 进入到刚才下载的SuperSU.apk ...

    drupal 6.12

    * Ensure that the new location for the path is writable by the web server process. To grant write permissions for a directory named uploads, you may need to use the following command from a shell ...

    weapp.qrcode.js

    writable: true }); } else { target[options.name] = options.newValue; } }; // Return undefined instead of __proto__ if '__proto__' is not an own property var getProperty = function ...

    sensu-plugins-filesystem-checks:该插件提供了用于监控和指标收集的本机工具,包括

    档案文件bin / check-checksums.rb bin / check-ctime.rb bin / check-dir-count.rb bin / check-dir-size.rb bin / check-file-exists.rb bin / check-file-size.rb bin / check-fs-writable.rb bin / check-mtime....

    struts2标签史上最详细的struts2标签介绍

    struts2标签,史上最详细的struts2标签介绍

    SDFix: KitKat Writable MicroSD

    SDFix能够去除安卓4.4上无法向外置sd卡写数据的限制。

    drf-writable-nested:适用于Django REST Framework的可写嵌套模型序列化器

    DRF可写嵌套 ...pip install drf-writable-nested 用法 例如,对于以下模型结构: from django . db import models class Site ( models . Model ): url = models . CharField ( max_length = 100 ) clas

    end-of-stream, 当 readable/writable/duplex 流已经完成或者失败时调用回调.zip

    end-of-stream, 当 readable/writable/duplex 流已经完成或者失败时调用回调 end-of-stream当 readable/writable/duplex 流完成或者失败时调用回调的node 模块。npm install end-of-stream用法只需传递一个流和一个...

Global site tag (gtag.js) - Google Analytics