Skip to content

Instantly share code, notes, and snippets.

@depoulo
Last active May 24, 2018 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save depoulo/47f0471d5849ccf2772cee5adc1900b9 to your computer and use it in GitHub Desktop.
Save depoulo/47f0471d5849ccf2772cee5adc1900b9 to your computer and use it in GitHub Desktop.
MySQL query logging
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