Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Last active November 17, 2015 02:57
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 xcsrz/5fd377886de291a36604 to your computer and use it in GitHub Desktop.
Save xcsrz/5fd377886de291a36604 to your computer and use it in GitHub Desktop.
Query mysql logs
SET global general_log = 1;
SET global log_output = 'table';
-- and then
select * from mysql.general_log order by event_time desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment