Disable MySQL general logging without restarting?

Posted by shantanuo on Stack Overflow See other posts from Stack Overflow or by shantanuo
Published on 2009-08-28T13:19:40Z Indexed on 2010/03/21 11:01 UTC
Read the original article Hit count: 403

Filed under:
|

Can I disable general logging completely without restarting the server?

Because, per the documentation:

SET sql_log_bin = {0|1}

Disables or enables binary logging for the current connection (sql_log_bin is a session variable) if the client has the SUPER privilege. The statement is refused with an error if the client does not have that privilege.

Can I enable/disable general log without restarting MySQL?

© Stack Overflow or respective owner

Related posts about logging

Related posts about mysql