Documentation Home
MySQL Internals Manual Binlog Event header

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


Binlog header

4              timestamp
1              event type
4              server-id
4              event-size
   if binlog-version > 1:
4              log pos
2              flags
  • 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
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.