To Enable Mysql General Log

Log — Tags: — Posted by Starck on October 17, 2013

Edit my.cnf:

You can also rename the general query log file at runtime by disabling the log:

SET GLOBAL general_log = 'OFF';

With the log disabled, rename the log file externally; for example, from the command line. Then enable the log again:

SET GLOBAL general_log = 'ON';

Mysql Reference

(c) 2023 Starck Lin | powered by WordPress