Writing MySQL Proxy in GO for self-learning: Part 2 — decoding
handshake packet
After we built a generic TCP proxy, we can continue with our
journey. Today’s goal will be to understand the MySQL Protocol,
receive, decode, encode and send to the client the first packet
sent by the MySQL Server.
MySQL connections threads
Each client connection to MySQL Server handled by a thread. MySQL is portable, so the underhood
threads implementation is system dependent (Windows, macOS, and
Linux have their own threads implementation).
What important to us, it’s to understand that a single client
connection …
[Read more]