解決禪道(ZenTao)Mysql啟動不了的問題
解決禪道(ZenTao)Mysql啟動不了的問題
參考:
http://www.zentao.net/ask-view-3669
http://www.ttlsa.com/mysql/warning-world-writable-config-file-etcmy-cnf-is-ignored/
[email protected] /]# /opt/zbox/zbox start
Apache is running
Start Mysql fail. You can see the log /opt/zbox/logs/mysql_error.log
mysql_error.log日誌裡並沒有什麼有用的記錄
使用mysql客戶端時發現my.cnf 有問題
# /opt/zbox/run/mysql/mysql
Warning: World-writable config file '/opt/zbox/etc/mysql/my.cnf' is ignored
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
修改配置檔案許可權
# ll /opt/zbox/etc/mysql/my.cnf
-rwxrwxrwx. 1 root root 928 Jan 5 15:05 /opt/zbox/etc/mysql
# chmod 644 /opt/zbox/etc/mysql/my.cnf
# ll /opt/zbox/etc/mysql/my.cnf
-rw-r--r--. 1 root root 928 Jan 5 15:05 /opt/zbox/etc/mysql/my.cnf
然後
./zbox start 就啟動了
# ./zbox start
Starting MySQLStart Apache success
Start Mysql success