Skip to content

Instantly share code, notes, and snippets.

@timothyw
Created February 13, 2010 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyw/303168 to your computer and use it in GitHub Desktop.
Save timothyw/303168 to your computer and use it in GitHub Desktop.
mysql> SET GLOBAL general_log = 1;
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like 'general%';
+------------------+---------------------------------+
| Variable_name | Value |
+------------------+---------------------------------+
| general_log | ON |
| general_log_file | /usr/log/mysql/mysql.log |
+------------------+---------------------------------+
mysql> SET GLOBAL general_log = 0;
Query OK, 0 rows affected (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment