Skip to content

Instantly share code, notes, and snippets.

@sblendorio
Created March 28, 2023 14:22
Show Gist options
  • Save sblendorio/92b1cc6f8ab0ad85bf23374939302f80 to your computer and use it in GitHub Desktop.
Save sblendorio/92b1cc6f8ab0ad85bf23374939302f80 to your computer and use it in GitHub Desktop.
Mysql dump queries log
mysql> SHOW VARIABLES LIKE "general_log%";
+------------------+----------------------------+
| Variable_name | Value |
+------------------+----------------------------+
| general_log | OFF |
| general_log_file | /var/run/mysqld/mysqld.log |
+------------------+----------------------------+
mysql> SET GLOBAL general_log = 'ON';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment