解决禅道(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/

  

root@localhost /]# /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/my.cnf

# 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 

猜你喜欢

转载自crabdave.iteye.com/blog/2348973