List:Internals« Previous MessageNext Message »
From:Eric DeFriez Date:December 14 2009 5:48pm
Subject:mysql client packet header
View as plain text  
according to:
http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#The_Packet_Header

the first 3 bytes of the response from server to client is the length
of the mysql packet, however from my own investigations (mysql 5.0.37
with innodb) the response packet to any query ("select ...") is always
hex "01 00 00" regardless of the length of the mysql response packet.
:-/

some executions (like "use <database>" or "set autocommit=0") do get
mysql to return a legitimate length ("07 00 00") however any query i
execute where i expect data rows to be returned the length is never
correct.

anyone know what the problem is?

thanks,
eric
Thread
mysql client packet headerEric DeFriez14 Dec
  • Re: mysql client packet headerEric Day14 Dec
    • Re: mysql client packet headerEric DeFriez15 Dec
      • 5.4 Build errorHiromichi Watari15 Dec