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)

Retrieved from "http://forge.mysql.com/wiki/Talk:MySQL_Internals_ClientServer_Protocol"

This page has been accessed 837 times. This page was last modified 23:29, 14 March 2012.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
View content page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...