MySQL 8.4.2
Source Code Documentation
|
Replication uses binlogs to ship changes done on the master to the slave and can be written to Binlog File and sent over the network as Binlog Network Stream.
Binlog files start with a Binlog File Header followed by a series of Binlog Event
A binlog file start with a ‘Binlog File Header [ 0xFE 'bin’]`
Network streams are requested with COM_BINLOG_DUMP and prepend each Binlog Event with 00
OK-byte.
Depending on the MySQL version that created the binlog the format is slightly different. Four versions are currently known:
Binlog version | MySQL Version |
---|---|
1 | MySQL 3.23 - < 4.0.0 |
2 | MySQL 4.0.0 - 4.0.1 |
3 | MySQL 4.0.2 - < 5.0.0 |
4 | MySQL 5.0.0+ |
Supported Statement Based Replication Events
Can be ignored as it was only used in early alpha versinos of MySQL 4.1 and won't be documented here.
Added the relay logs and changed the meaning of the log position
Added the FORMAT_DESCRIPTION_EVENT and made the protocol extensible.
In MySQL 5.1.x the Row Based Replication Events were added.