In my recent work I had to dive into the Internals of the MySQL protocol.
Most of the protocol is described in Chapter 8. MySQL Client/Server Protocol.
"Most" as it documents the state of MySQL 4.1.x before it was
stable. It is interesting for all developers who want to extend
the mysql-server or want to write a native
connector to MySQL which isn't using
libmysqlclient.
Note: the protocol definition and the derived work at released under the terms of the GPL. See 8.1. Licensing Notice
Connection States
The MySQL protocol has two phases: auth and …