Pre-General Availability Draft: 2017-10-17
During replication, a slave server creates several logs that hold the binary log events relayed from the master to the slave, and record information about the current status and location within the relay log. There are three types of logs used in the process, listed here:
The relay log consists of the events read from the binary log of the master and written by the slave I/O thread. Events in the relay log are executed on the slave as part of the SQL thread.
The master info log contains status and current configuration information for the slave's connection to the master. This log holds information on the master host name, login credentials, and coordinates indicating how far the slave has read from the master's binary log. The master info log is written to the
The relay log info log holds status information about the execution point within the slave's relay log. The relay log is written to the
Making replication resilient to unexpected halts.
mysql.slave_relay_log_info tables are created
using the transactional storage engine
InnoDB, so that they are resilient
to unexpected halts. The
--relay-log-recovery option must
be enabled on the slave to guarantee resilience.
In MySQL 8.0, a warning is given when mysqld is unable to initialize the replication logging tables, but the slave is allowed to continue starting. 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 8.0, execution of any statement requiring a
write lock on either or both of the
slave_relay_log_info tables is disallowed while
replication is ongoing, while statements that perform only reads
are permitted at any time.
Do not attempt to update or insert rows in the
slave_relay_log_info tables manually. Doing
so can cause undefined behavior, and is not supported.