Talk:MySQL Internals ClientServer Protocol
The document says the header package is consists of 4 bytes where first 3 bytes are package length and last 1 byte is package number.
I tried a sample tcp connection to mysql server, I encountered following hex data:
3e 00 00 00
representing package header.
now 3e equals 62 which is the correct package header but, I quite did not understand, the order of bytes such that what is the reason that 3e part is located at first byte.
if this question is nonsense, then can anyone care to explain extracting length from first 3 bytes?
thanks.
-Kemal
looks as if the abbreviated SSL handshake not only needs to send the flags filed, but actually flags, max_packet length, charset and the 23 byte filler?
Hartmut Holzgraefe 23:29, 14 March 2012 (UTC)