MySQL 8.4.0
Source Code Documentation
Client/Server Protocol


The MySQL protocol is used between MySQL Clients and a MySQL Server. It is implemented by:

  • Connectors (Connector/C, Connector/J, and so forth)
  • MySQL Proxy
  • Communication between master and slave replication servers

The protocol supports these features:

  • Transparent encryption using SSL
  • Transparent compression
  • A Connection Phase where capabilities and authentication data are exchanged
  • A Command Phase which accepts commands from the client and executes them

Further reading: