Created
October 30, 2019 12:17
-
-
Save MiteshShah/3c9b061679e94c36f971658273b722d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
SET GLOBAL slow_query_log = ON; | |
SET GLOBAL slow_query_log_file = '/var/log/mysql/mysql-slow.log'; | |
SHOW GLOBAL VARIABLES LIKE 'slow\_%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Log all query