16.1.6.4 Binary Logging Options and Variables (original) (raw)

System Variables Used with Binary Logging

The following list describes system variables for controlling binary logging. They can be set at server startup and some of them can be changed at runtime usingSET. Server options used to control binary logging are listed earlier in this section.

A -> B -> C  

Here, A serves as the source for the replica B, and B serves as the source for the replica C. For this to work, B must be both a source_and_ a replica. You must start bothA and B with--log-bin to enable binary logging, and B withlog_slave_updates enabled so that updates received from A are logged by B to its binary log.

max_binlog_cache_size <  
  (((maxsize - max_binlog_size) / max_connections) - 1000) / 1.2  

This calculation takes into account the following conditions: