Documentation Home
MySQL Internals Manual

MySQL Internals Manual  /  ...  /  Describing Packets Describing Packets

In this document we describe each packet by first defining its payload and provide an example showing each packet that is sent, including its packet header:


  direction: client -> server
  response: <response>

    <type>        <description>

    01 00 00 00 01

The <type> describes the sequence of bytes of the packet:


Some packets have optional fields or a different layout depending on the Protocol::CapabilityFlags that are sent as part of the Protocol::HandshakeResponse packet.

If a field has a fixed value, its description shows it as a hex value in brackets like this: [00]