Created
March 4, 2020 15:07
-
-
Save llagerlof/8e1142d4f0e8c7a895641e43baabab56 to your computer and use it in GitHub Desktop.
Start logging all queries executed by MySQL server
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
| # Must run as root in mysql cli | |
| SET global log_output = 'FILE'; | |
| SET global general_log_file='mysql_sql.log'; | |
| SET global general_log = 1; | |
| # Disable with SET global general_log = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment