Skip to content

Instantly share code, notes, and snippets.

@abdes-zakari
Last active December 17, 2021 12:25
Show Gist options
  • Save abdes-zakari/1400a4504b837c89bf289bc37617102d to your computer and use it in GitHub Desktop.
Save abdes-zakari/1400a4504b837c89bf289bc37617102d to your computer and use it in GitHub Desktop.
Enable MySQL Query Log
//Enable MySQL Query Log
// To see global variable is enabled or not and location of query log
SHOW VARIABLES like 'general%';
// Set query log on
SET GLOBAL general_log = ON;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment