Documentation Home
MySQL Internals Manual

MySQL Internals Manual  /  ...  /  Compressed Packet Header

14.4.2 Compressed Packet Header

The header looks like:

3              length of compressed payload
1              compressed sequence id
3              length of payload before compression
length of compressed payload

raw packet length minus the size of the compressed packet header (7 bytes) itself.

compressed sequence id

sequence id of the compressed packets, reset in the same way as the MySQL Packet, but incremented independently

length of payload before compression

size of payload before it was compressed.