Created
May 23, 2013 03:37
-
-
Save caingougou/5632599 to your computer and use it in GitHub Desktop.
Enable mysql general log at runtime
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
SET GLOBAL log_output = "FILE"; which may be set by default, I think. | |
SET GLOBAL general_log_file = "/var/log/mysql/my.log"; | |
SET GLOBAL general_log = 'ON'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment