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
-- enable db table logging | |
SET GLOBAL log_output = 'TABLE'; | |
SET GLOBAL general_log = 'ON'; | |
-- table with logs | |
select * from mysql.general_log | |
-- disable logging | |
SET GLOBAL general_log = 'ON'; | |
-- enable file logging | |
SET GLOBAL log_output = "FILE"; -- which is set by default. | |
SET GLOBAL general_log_file = "/path/to/your/logfile.log"; | |
SET GLOBAL general_log = 'ON'; |
No comments:
Post a Comment