Spec-Zone .ru
спецификации, руководства, описания, API

13.4.1.3. SET sql_log_bin Syntax

SET sql_log_bin = {0|1}

The sql_log_bin variable controls whether logging to the binary log is done. The default value is 1 (do logging). To change logging for the current session, change the session value of this variable. The session user must have the SUPER privilege to set this variable.

In MySQL 5.6, it is not possible to set @@session.sql_log_bin within a transaction or subquery. (Bug #53437)