Binary Log Options and Variables


You can use the mysqld options and system variables that are described in this section to affect the operation of the binary log as well as to control which statements are written to the binary log. For additional information about the binary log, see , "The Binary Log". For additional information about using MariaDB server options and system variables, see , "Server Command Options", and , "Server System Variables".

Startup options used with binary logging. The following list describes startup options for enabling and configuring the binary log. System variables used with binary logging are discussed later in this section.

Statement selection options. The options in the following list affect which statements are written to the binary log, and thus sent by a replication master server to its slaves. There are also options for slave servers that control which statements received from the master should be executed or ignored. For details, see , "Replication Slave Options and Variables".

Checksum options. Beginning with MariaDB 5.6.2, MariaDB supports reading and writing of binary log checksums. These are enabled using the two options listed here:

To control reading of checksums by the slave (from the relay) log, use the --slave-sql-verify-checksum option.

Options for logging slave status to tables. MariaDB 5.6 and later supports logging of replication slave status information to tables rather than files. Writing of the master info log and the relay log info log can be configured separately using two server options added in MariaDB 5.6.2 and listed here:

For more information, see , "Replication Relay and Status Logs".

Testing and debugging options. The following binary log options are used in replication testing and debugging. They are not intended for use in normal operations.

System variables used with the binary log. 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 using SET. Server options used to control binary logging are listed earlier in this section.

Retornar