Created
November 15, 2014 16:53
-
-
Save tomykaira/4c05c50472b5f316f375 to your computer and use it in GitHub Desktop.
MySQL General query log without restart
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 -u root */ | |
SET GLOBAL log_output=FILE; | |
SET GLOBAL general_log=ON; | |
show variables like 'general_log%'; | |
/* | |
+------------------+------------------------------+ | |
| Variable_name | Value | | |
+------------------+------------------------------+ | |
| general_log | ON | | |
| general_log_file | /var/lib/mysql/localhost.log | | |
+------------------+------------------------------+ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment