Skip to content

Instantly share code, notes, and snippets.

@serinuntius
Created April 26, 2017 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serinuntius/3fdcf76adcdf1ad4a3559a3469133040 to your computer and use it in GitHub Desktop.
Save serinuntius/3fdcf76adcdf1ad4a3559a3469133040 to your computer and use it in GitHub Desktop.
/etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
slow_query_log=1
long_query_time=0
slow_query_log_file=/var/log/mysql/slow.log
general_log_file=/var/log/mysql/general.log
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment