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

16.2.2. Replication Relay and Status Logs

16.2.2.1. The Slave Relay Log
16.2.2.2. Slave Status Logs

During replication, a slave server creates several logs that hold the binary log events relayed from the master to the slave, and to record information about the current status and location within the relay log. There are three types of logs used in the process, listed here:

In order for replication to be crash-safe when using tables for logging status and relay information, the tables must use a transactional storage engine, such as InnoDB. In MySQL 5.7, these tables are created using InnoDB. (Bug #13538891)

Note

In order to guarantee crash safety on the slave, you must also run the slave with --relay-log-recovery enabled.

In MySQL 5.7, a warning is given when mysqld is unable to initialize the replication logging tables, but the slave is allowed to continue starting. (Bug #13971348) This situation is most likely to occur when upgrading from a version of MySQL that does not support slave logging tables to one in which they are supported.

In MySQL 5.7, execution of any statement requiring a write lock on either or both of the slave_master_info and slave_relay_log_info tables is disallowed while replication is ongoing, while statements that perform only reads are permitted at any time.

Important

Do not attempt to update or insert rows in the slave_master_info or slave_relay_log_info table manually. Doing so can cause undefined behavior, and is not supported.