Skip to content

Instantly share code, notes, and snippets.

@jawira
Created November 5, 2015 17:31
Show Gist options
  • Save jawira/c57f97d15c8dc68e3df0 to your computer and use it in GitHub Desktop.
Save jawira/c57f97d15c8dc68e3df0 to your computer and use it in GitHub Desktop.
How to show the last queries executed on MySQL?
-- Source: http://stackoverflow.com/questions/650238/how-to-show-the-last-queries-executed-on-mysql
SET GLOBAL log_output = "FILE";
SET GLOBAL general_log_file = "/path/to/your/logfile.log";
SET GLOBAL general_log = 'ON';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment