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§
- Binlog
Event Header - Parsed binlog event header (19 bytes, common to all events).
- Format
Description Event - Parsed Format Description Event (type 15).
- Rotate
Event - Parsed ROTATE_EVENT (type 4).
Functions§
- validate_
binlog_ magic - Validate that the first 4 bytes match the binlog magic number.