Skip to content

Instantly share code, notes, and snippets.

@chriskief

chriskief/log_on.sql

Last active Aug 29, 2015
Embed
What would you like to do?
mysql> SHOW VARIABLES LIKE "general_log%";
+------------------+-----------------------------------+
| Variable_name | Value |
+------------------+-----------------------------------+
| general_log | OFF |
| general_log_file | /opt/local/var/db/mysql56/out.log |
+------------------+-----------------------------------+
2 rows in set (0.00 sec)
mysql> SET GLOBAL general_log = 'ON';
Query OK, 0 rows affected (0.01 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment