Skip to content

Instantly share code, notes, and snippets.

@rbrisita
Created February 20, 2015 21:14
Show Gist options
  • Save rbrisita/301899ee0452dd233a02 to your computer and use it in GitHub Desktop.
Save rbrisita/301899ee0452dd233a02 to your computer and use it in GitHub Desktop.
MySQL 5.6 Slow Query Log Example
# Give write permissions to the other group for log file.
slow_query_log = 1
slow_query_log_file = /var/log/mysql/slow.log
long_query_time = 10
log_queries_not_using_indexes = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment