Browse Source

Fixed Debian 7 mysql slow_query_log_file

old-stable
Mitesh Shah 11 years ago
parent
commit
297a68ad22
  1. 2
      src/modules/system/install/ee_mod_setup_mysql.sh

2
src/modules/system/install/ee_mod_setup_mysql.sh

@ -8,6 +8,6 @@ function ee_mod_setup_mysql()
grep "_timeout" /etc/mysql/my.cnf &>> $EE_COMMAND_LOG
if [ $? -ne 0 ]; then
sed -i "/#max_connections/a wait_timeout = 30 \ninteractive_timeout = 60" /etc/mysql/my.cnf
sed -i "/log_error/a slow_query_log_file = /var/log/mysql/slow.log" /etc/mysql/my.cnf
sed -i "/\[mysqldump\]/i slow_query_log_file = /var/log/mysql/slow.log" /etc/mysql/my.cnf
fi
}

Loading…
Cancel
Save