Skip to main content

Module header

Module header 

Source
Expand description

Binary log file header and format description event parsing.

MySQL binary logs start with a 4-byte magic number (\xfe\x62\x69\x6e) followed by a Format Description Event that describes the binlog version, server version, and event header length.

Structs§

BinlogEventHeader
Parsed binlog event header (19 bytes, common to all events).
FormatDescriptionEvent
Parsed Format Description Event (type 15).
RotateEvent
Parsed ROTATE_EVENT (type 4).

Functions§

validate_binlog_magic
Validate that the first 4 bytes match the binlog magic number.