Commits

Zhang Huangbin committed 58b57a7

Disable MySQL parameter 'skip-networking' to allow TCP/IP connection.

Comments (0)

Files changed (1)

iRedMail/functions/mysql.sh

     # Warning: We must have 'mysql_enable=YES' before start/stop mysql daemon.
     freebsd_enable_service_in_rc_conf 'mysql_enable' 'YES'
 
+    # Disable 'skip-networking' in my.cnf.
+    perl -pi -e 's#^(skip-networking.*)#${1}#' ${MYSQL_MY_CNF} &>/dev/null
+
     ${MYSQLD_RC_SCRIPT} restart &>/dev/null
 
     ECHO_DEBUG "Sleep 5 seconds for MySQL daemon initialize ..."