mysql启动warning: World-writable config file

如果在启动warning: World-writable config file /home/mysql/my.cnf is ignored
原因:my.cnf的读取权限进行了设置,不允许World-writable(字面意思是全世界都可读写)
解决方法:
sudo chmod 644 /home/mysql/my.cnf

原文地址:https://www.cnblogs.com/xiaoleiel/p/8324092.html

时间: 2024-08-28 12:45:11

mysql启动warning: World-writable config file的相关文章

解决MAC下PHP连接MYSQL错误Warning: mysql_connect(): No such file or directory in conn.php

今天在mac上用php去连接mysql数据库,出现了 mac PHP Warning:  mysql_connect(): [2002] No such file... 详细例如以下所看到的: DirkMacBook:vote Dirk$ phpunit MyTest.php  Warning: mysql_connect(): No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/myvote/vote/conn.

解决mysql启动时报The server quit without updating PID file 的错误(转)

1.一般是权限问题,把用户和组改为mysql就可以了. chown -R mysql:mysql  /var/lib/mysql 2.在启动mysql时报下列错误 [[email protected] ~]# service mysql.server startStarting MySQL......................................The server quit without updating PID file (/var/lib/mysql/mysqld2.c

MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored

今天帮朋友维护服务器,在关闭数据库的命令发现mysql关不了,提示Warning: World-writable config file ‘/etc/my.cnf’ is ignored ,大概意思是权限全局可写,任何一个用户都可以写.mysql担心这种文件被其他用户恶意修改,所以忽略掉这个配置文件.这样mysql无法关闭. 下面看下整个过程 重启MySQL 可以看到mysql停止不了 查看my.cnf的权限 权限777,任何一个用户都可以改my.cnf,存在很大的安全隐患. 修复MySQL问题

解决Linux下MySQL启动错误Starting MySQL.Manager of pid-file quit without updating file.[FAILED]

刚装完MySQL,启动时报如下错误: Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 依次尝试了从谷歌找到的各种方法,发现只要执行如下MySQL初始化命令即可解决: /usr/local/mysql/bin/mysql_install_db --user=mysql 下面附上从谷歌找到的解决此问题的方法集锦,也许每个人遇到的问题的原因会不一样,经供参考: 一.查看报错日志 报错日志是我们解决问题的方向灯

MySQL - Found option without preceding group in config file

1.1.1 现象 启动MYSQL超时,windows提示错误,在服务中MYSQL状态一直处于starting状态,执行MYSQL命令,出现如下错误信息: error:found option without preceding group in config file:E:\webserver\mysql5\my.ini at line :1 fatal error in defaults handling .program aborted. 1.1.2 原因 配置文件My.ini的存储格式不正

iptables开启警告 iptables: No config file.         [WARNING]!

开启iptables警告! iptables: No config file.                                  [WARNING] 原因 没有iptables这个配置文件. 解决方式: 任意添加一条策略,然后保存,启动即可! eg: iptables -A INPUT -怕tcp --dport 80 -j ACCEPT services iptables save services iptables start

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

1. 问题描述: 重启mysql服务时出现以下信息: Warning: World-writable config file '/etc/my.cnf' is ignored 出现这种情况的原因是:mysql故意不让用户重写my.cnf,权限默认是644, 即-rw-r--r--, 如果权限不是644, 则会出现这种情况. 2. 解决方法: (1) 查看my.cnf文件的权限:[email protected]:DJISZ/marketevent.git ls -l /etc/my.cnf 信息

mysql启动不成功显示The server quit without updating PID file的解决方法

上午在编译安装mysql的时候 就出现标题中的错误,经实践在第二步操作后启动成功,参考链接 链接http://linuxadministrator.pro/blog/?p=225 You may face this error while restarting MySQL. Below are some fix for the same. [[email protected]:- ] $ service mysqld startStarting MySQL… ERROR! The server

MySQL 启动报错:File ./mysql-bin.index not found (Errcode: 13)

一 说明: 前几天,试着复制了一个mysql目录到另一台机器上面,然后更改权限并启动,但是一直报错 Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/AY14020816093477605eZ.pid). 二 排查: 上面只能看到mysql启动失败,具体的原因,需要查看数据库目录下的.err文件,查看.err文件,内容如下: 140726 00:18:10 mysqld_safe mysql