Last active
May 24, 2018 08:59
-
-
Save depoulo/47f0471d5849ccf2772cee5adc1900b9 to your computer and use it in GitHub Desktop.
MySQL query logging
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 general_log = 1; | |
set global log_output = 'table'; | |
-- | |
select event_time, substring(argument,1,100) from mysql.general_log where event_time > time('08:58'); | |
-- | |
SET global general_log = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment