操作数据库提示警告World-writable config file '/usr/local/mysql/my.cnf' is ignored

检查发现my.cnf权限过高【777】,将权限更改为644即可。

======================================================================

[root@sc-cgd-01-w-node-0002 init.d]# /etc/init.d/mysqld restart
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
Shutting down MySQL..                                      [  OK  ]
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
Starting MySQL.my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
my_print_defaults: [Warning] World-writable config file '/usr/local/mysql/my.cnf' is ignored.
                                                           [  OK  ]
[root@sc-cgd-01-w-node-0002 init.d]# ll /usr/local/mysql/my.cnf 
-rwxrwxrwx 1 mysql mysql 1705 Apr  8 10:22 /usr/local/mysql/my.cnf
[root@sc-cgd-01-w-node-0002 init.d]# 
[root@sc-cgd-01-w-node-0002 init.d]# cd /usr/local/mysql/
[root@sc-cgd-01-w-node-0002 mysql]# ll
total 92
drwxr-xr-x  2 mysql mysql  4096 Sep  9  2019 bin
-rw-r--r--  1 mysql mysql 17987 Jun 10  2019 COPYING
-rw-r--r--  1 mysql mysql 17987 Jun 10  2019 COPYING-test
drwxr-xr-x  2 mysql mysql  4096 Sep  9  2019 docs
drwxr-xr-x  2 mysql mysql  4096 Sep  9  2019 extra
drwxr-xr-x  3 mysql mysql  4096 Sep  9  2019 include
drwxr-xr-x  4 mysql mysql  4096 Sep  9  2019 lib
drwxr-xr-x  2 mysql mysql  4096 Apr  8 10:19 logs
drwxr-xr-x  3 mysql mysql  4096 Sep  9  2019 man
-rwxrwxrwx  1 mysql mysql  1705 Apr  8 10:22 my.cnf
drwxrwxr-x 10 mysql mysql  4096 Sep  9  2019 mysql-test
-rw-r--r--  1 mysql mysql  2478 Jun 10  2019 README
-rw-r--r--  1 mysql mysql  2478 Jun 10  2019 README-test
drwxr-xr-x 28 mysql mysql  4096 Sep  9  2019 share
drwxr-xr-x  2 mysql mysql  4096 Sep  9  2019 support-files
[root@sc-cgd-01-w-node-0002 mysql]# chmod 644 my.cnf 
[root@sc-cgd-01-w-node-0002 mysql]# /etc/init.d/mysqld restart
Shutting down MySQL..                                      [  OK  ]
Starting MySQL.                                            [  OK  ]
[root@sc-cgd-01-w-node-0002 mysql]#

my_print_defaults: [Warning] World-writable config file ‘/usr/local/mysql/my.cnf‘ is ignored.相关推荐

  1. 3934:C 10 Aug 2022 00:14:04.239 # Fatal error, can‘t open config file ‘/usr/local/redis/./redis-conf

    报错:3934:C 10 Aug 2022 00:14:04.239 # Fatal error, can't open config file '/usr/local/redis/./redis-c ...

  2. Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19

    输入:service mysqld start 报错: Starting MySQL.. ERROR! The server quit without updating PID file (/usr/ ...

  3. mysql初始化错误【一】Can't find error-message file '/usr/local/mysql/errmsg.sys'

    环境:CentOS 7.2 MySQL 5.7.18 从mysql官方网站下载rpm包到服务器本地,依次安装下面的RPM包: mysql-community-common-5.7.18-1.el7.x ...

  4. Mysql 启动报错解析:Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/dat

    现象: root@centos74 ~]# service mysqld start Starting MySQL.. ERROR! The server quit without updating ...

  5. MySQL常见错误:Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/localhos

    常见错误1:Starting MySQL-The server quit without updating PID file (/usr/local/mysql/data/localhost.loca ...

  6. linux下安装mysql问题:mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended

    原文链接 : linux下安装mysql问题总结(一)mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended li ...

  7. 启动Mysql时报错:mysqld_safe mysqld from pid file /usr/local/mysql/data/Linux.pid ended

    今天启动下mysql 的安全后台启动,发现报错:mysqld_safe mysqld from pid file /usr/local/mysql/data/Linux.pid ended 原本我以为 ...

  8. ERROR! The server quit without updating PID file (/usr/local/mysql/data/

    Mysql 好久不用,今天启动发现报ERROR! The server quit without updating PID file (/usr/local/mysql/data/ xxxxxPro. ...

  9. 报错The server quit without updating PID file (/usr/local/mysql/data/mysql.pid)

    Unix socket lock file is empty /tmp/mysql.sock.lock的解决方法 安装MySQL-8.0.21时,启动service mysql start时,报错Th ...

最新文章

  1. 标题1100: 简略计算器
  2. python下载百度网盘文件-python通过百度云api的方式上传或下载文件
  3. html中表格的页眉页脚,有一个标准的页眉页脚布局HTML网页,而无需使用table标签...
  4. P4884-多少个1?【BSGS】
  5. Oracle数据块损坏的恢复实例
  6. html5做一个相册_HTML5最新版本介绍
  7. mysql的条件求和函数_mysql 带条件取count记录数,SUM()函数按条件求和
  8. Hibernate关联关系映射-----基于连接表的单向一对多映射配置
  9. Theano2.1.10-基础知识之循环
  10. 是清单 Dog List的子类 Animal ? 为什么Java泛型不是隐式多态的?
  11. eclipse-阶段三-Server被关闭后消失,如何打开
  12. R语言之数据分析高级方法「时间序列」
  13. OPENFILENAME结构的定义
  14. python 导入自己写的类_Python3.7模块的定义、导入、优化操作图文完全详解,附视频教程...
  15. 算法:螺旋矩阵算出N行N列的数组Spiral Matrix II
  16. Leaflet加turf生成等值线图(或色斑图)并单击显示值
  17. 如何自学c语言更有效率,新手自学C语言提高效率的方法(混精)
  18. 数仓建模—建模工具PdMan
  19. js正则表达式把数字格式化成XXXX-XXX-XXX
  20. PDF 的命令行操作

热门文章

  1. 下一盘大棋 淘宝旅行5000万补贴背后的“阴谋”
  2. demension(dimensional)
  3. cifar-10数据集+ResNet50
  4. JabRef:bib转endnote
  5. SLAM总结(四)-视觉前端
  6. c语言rang()函数,通达信range函数的用法
  7. 地理总结(一)--各个地方简称
  8. 服务器双路性能双倍,为什么服务器CPU可以双路甚至多路
  9. 用php写登录成功后的界面,登录成功后跳转_php如何实现登录成功后跳转页面
  10. 企业即时通讯系统可以二次开发哪些功能