Documentation Home
MySQL Internals Manual ERR_Packet

This packet signals that an error occurred. It contains a SQL state value if CLIENT_PROTOCOL_41 is enabled.

Type Name Description
int<1> header [ff] header of the ERR packet
int<2> error_code error-code
if capabilities & CLIENT_PROTOCOL_41 {
  string[1] sql_state_marker # marker of the SQL State
  string[5] sql_state SQL State
string<EOF> error_message human readable error message