MySQL无法重启问题解决Warning: World-writable config file '/etc/my.cnf' is ignored
生活随笔
收集整理的這篇文章主要介紹了
MySQL无法重启问题解决Warning: World-writable config file '/etc/my.cnf' is ignored
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
今天幫朋友維護(hù)服務(wù)器,在關(guān)閉數(shù)據(jù)庫的命令發(fā)現(xiàn)mysql關(guān)不了,提示W(wǎng)arning: World-writable config file '/etc/my.cnf' is ignored ,大概意思是權(quán)限全局可寫,任何一個(gè)用戶都可以寫。mysql擔(dān)心這種文件被其他用戶惡意修改,所以忽略掉這個(gè)配置文件。這樣mysql無法關(guān)閉。 下面看下整個(gè)過程 重啟MySQL [root@ttlsa ~]# service mysqld stop Warning: World-writable config file '/etc/my.cnf' is ignored Warning: World-writable config file '/etc/my.cnf' is ignored MySQL manager or server PID file could not be found![FAILED] 可以看到mysql停止不了 查看my.cnf的權(quán)限 [root@ttlsa ~]# ls -l /etc/my.cnf -rwxrwxrwx 1 root root 4878 Jul 30 11:31 /etc/my.cnf 權(quán)限777,任何一個(gè)用戶都可以改my.cnf,存在很大的安全隱患. 修復(fù)MySQL問題 [root@ttlsa ~]#?chmod 644 /etc/my.cnf my.cnf設(shè)置為用戶可讀寫,其他用戶不可寫. 關(guān)閉MySQL [root@ttlsa ~]#?service mysqld stop Shutting down MySQL..[? OK? ] MySQL關(guān)閉成功.?問題很簡單 來源站點(diǎn): 運(yùn)維生存時(shí)間???網(wǎng)址:http://www.ttlsa.com/html/3445.html轉(zhuǎn)載于:https://my.oschina.net/766/blog/211252
總結(jié)
以上是生活随笔為你收集整理的MySQL无法重启问题解决Warning: World-writable config file '/etc/my.cnf' is ignored的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux uuid错误,Linux 错
- 下一篇: 1315B. Homecoming