Skip to content

Instantly share code, notes, and snippets.

@owenconti
Last active January 4, 2021 19:06
Show Gist options
  • Save owenconti/1e12d01d52d2334d52ee4eca37bb12b6 to your computer and use it in GitHub Desktop.
Save owenconti/1e12d01d52d2334d52ee4eca37bb12b6 to your computer and use it in GitHub Desktop.
MySQL general log
SELECT * FROM mysql.general_log;
SELECT * FROM mysql.general_log ORDER BY event_time DESC LIMIT 100;
// my.cnf
[mysqld]
general_log = 1
log_output = 'table'
SET global log_output = 'table';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment