Skip to content
Snippets Groups Projects
Commit 93f39cc8 authored by xurizaemon's avatar xurizaemon Committed by GitHub
Browse files

Add runtime settings for query log.

parent 5f9e08d3
Branches
No related tags found
No related merge requests found
......@@ -94,6 +94,21 @@ The relevant settings are:
general_log_file=/tmp/mysql.log
# Enable/disable the query log
general_log=1
You can enable the query log at runtime via SQL, provided the path to the logfile is configured.
SET GLOBAL general_log = 'ON';
SET GLOBAL general_log = 'OFF';
And you can inspect the query log settings also:
mysql> show variables like '%general%';
+------------------+---------------------------------+
| Variable_name | Value |
+------------------+---------------------------------+
| general_log | OFF |
| general_log_file | /usr/local/var/mysql/strike.log |
+------------------+---------------------------------+
## Changing source code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment