Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 0.8Mb


14.9.4.1 Binlog Event header

The binlog event header starts each event and is either 13 or 19 bytes long, depending on the binlog version.

Binlog::EventHeader:

Binlog header

Payload
4              timestamp
1              event type
4              server-id
4              event-size
   if binlog-version > 1:
4              log pos
2              flags
Fields
  • timestamp (4) -- seconds since unix epoch

  • event_type (1) -- see Binlog Event Type

  • server_id (4) -- server-id of the originating mysql-server. Used to filter out events in circular replication.

  • event_size (4) -- size of the event (header, post-header, body)

  • log_pos (4) -- position of the next event

  • flags (2) -- see Binlog Event Flag


User Comments
Sign Up Login You must be logged in to post a comment.