Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


14.1.3.2 ERR_Packet

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

Payload
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
Example

User Comments
Sign Up Login You must be logged in to post a comment.