Created
May 7, 2020 12:21
-
-
Save technokid/76c74299c1b8360c8655b372f5ae959a to your computer and use it in GitHub Desktop.
Enable logger slow query in mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slow_query_log = 1 | |
slow_query_log_file = /var/log/mysql/mysql-slow.log | |
long_query_time = 1 | |
log_queries_not_using_indexes | |
#then restart mysql server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment