Created
July 1, 2019 08:54
-
-
Save simonrenoult/edbf7547ad74cb974494ec7786ca4361 to your computer and use it in GitHub Desktop.
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
$> mysql --host=127.0.0.1 --protocol=TCP --user=root --password=password | |
mysql> SET GLOBAL log_output=FILE; | |
mysql> SET GLOBAL log_queries_not_using_indexes=ON; | |
mysql> SET GLOBAL long_query_time=0.1; | |
mysql> SET GLOBAL slow_query_log=ON; | |
mysql> SET GLOBAL slow_query_log_file='/var/log/mysql/slow-query.log'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment