Solve the problem that ZenTao Mysql cannot be started

Solve the problem that ZenTao Mysql cannot be started  

 

refer to:

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

 

There is no useful record in the mysql_error.log log

 

There is a problem with my.cnf when using the mysql client

# /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)

    

Modify configuration file permissions

# 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 

 

Then

./zbox start will start

 

# ./zbox start

Starting MySQLStart Apache success

Start Mysql success 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326751212&siteId=291194637