Created
July 1, 2019 08:55
-
-
Save simonrenoult/2d2b9a23839334a1da61ba0d5f70dba3 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