MySQL 9.1.0
Source Code Documentation
errmsg.h File Reference

Error messages for MySQL clients. More...

Go to the source code of this file.

Macros

#define CR_MIN_ERROR   2000 /* For easier client code */
 
#define CR_MAX_ERROR   2999
 
#define CLIENT_ERRMAP   2 /* Errormap used by my_error() */
 
#define CR_ERROR_FIRST   2000 /*Copy first error nr.*/
 
#define CR_UNKNOWN_ERROR   2000
 
#define CR_SOCKET_CREATE_ERROR   2001
 
#define CR_CONNECTION_ERROR   2002
 
#define CR_CONN_HOST_ERROR   2003
 
#define CR_IPSOCK_ERROR   2004
 
#define CR_UNKNOWN_HOST   2005
 
#define CR_SERVER_GONE_ERROR   2006
 
#define CR_VERSION_ERROR   2007
 
#define CR_OUT_OF_MEMORY   2008
 
#define CR_WRONG_HOST_INFO   2009
 
#define CR_LOCALHOST_CONNECTION   2010
 
#define CR_TCP_CONNECTION   2011
 
#define CR_SERVER_HANDSHAKE_ERR   2012
 
#define CR_SERVER_LOST   2013
 
#define CR_COMMANDS_OUT_OF_SYNC   2014
 
#define CR_NAMEDPIPE_CONNECTION   2015
 
#define CR_NAMEDPIPEWAIT_ERROR   2016
 
#define CR_NAMEDPIPEOPEN_ERROR   2017
 
#define CR_NAMEDPIPESETSTATE_ERROR   2018
 
#define CR_CANT_READ_CHARSET   2019
 
#define CR_NET_PACKET_TOO_LARGE   2020
 
#define CR_EMBEDDED_CONNECTION   2021
 
#define CR_PROBE_REPLICA_STATUS   2022
 
#define CR_PROBE_REPLICA_HOSTS   2023
 
#define CR_PROBE_REPLICA_CONNECT   2024
 
#define CR_PROBE_SOURCE_CONNECT   2025
 
#define CR_SSL_CONNECTION_ERROR   2026
 
#define CR_MALFORMED_PACKET   2027
 
#define CR_WRONG_LICENSE   2028
 
#define CR_NULL_POINTER   2029
 
#define CR_NO_PREPARE_STMT   2030
 
#define CR_PARAMS_NOT_BOUND   2031
 
#define CR_DATA_TRUNCATED   2032
 
#define CR_NO_PARAMETERS_EXISTS   2033
 
#define CR_INVALID_PARAMETER_NO   2034
 
#define CR_INVALID_BUFFER_USE   2035
 
#define CR_UNSUPPORTED_PARAM_TYPE   2036
 
#define CR_SHARED_MEMORY_CONNECTION   2037
 
#define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR   2038
 
#define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR   2039
 
#define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR   2040
 
#define CR_SHARED_MEMORY_CONNECT_MAP_ERROR   2041
 
#define CR_SHARED_MEMORY_FILE_MAP_ERROR   2042
 
#define CR_SHARED_MEMORY_MAP_ERROR   2043
 
#define CR_SHARED_MEMORY_EVENT_ERROR   2044
 
#define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR   2045
 
#define CR_SHARED_MEMORY_CONNECT_SET_ERROR   2046
 
#define CR_CONN_UNKNOW_PROTOCOL   2047
 
#define CR_INVALID_CONN_HANDLE   2048
 
#define CR_UNUSED_1   2049
 
#define CR_FETCH_CANCELED   2050
 
#define CR_NO_DATA   2051
 
#define CR_NO_STMT_METADATA   2052
 
#define CR_NO_RESULT_SET   2053
 
#define CR_NOT_IMPLEMENTED   2054
 
#define CR_SERVER_LOST_EXTENDED   2055
 
#define CR_STMT_CLOSED   2056
 
#define CR_NEW_STMT_METADATA   2057
 
#define CR_ALREADY_CONNECTED   2058
 
#define CR_AUTH_PLUGIN_CANNOT_LOAD   2059
 
#define CR_DUPLICATE_CONNECTION_ATTR   2060
 
#define CR_AUTH_PLUGIN_ERR   2061
 
#define CR_INSECURE_API_ERR   2062
 
#define CR_FILE_NAME_TOO_LONG   2063
 
#define CR_SSL_FIPS_MODE_ERR   2064
 
#define CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED   2065
 
#define CR_COMPRESSION_WRONGLY_CONFIGURED   2066
 
#define CR_KERBEROS_USER_NOT_FOUND   2067
 
#define CR_LOAD_DATA_LOCAL_INFILE_REJECTED   2068
 
#define CR_LOAD_DATA_LOCAL_INFILE_REALPATH_FAIL   2069
 
#define CR_DNS_SRV_LOOKUP_FAILED   2070
 
#define CR_MANDATORY_TRACKER_NOT_FOUND   2071
 
#define CR_INVALID_FACTOR_NO   2072
 
#define CR_CANT_GET_SESSION_DATA   2073
 
#define CR_INVALID_CLIENT_CHARSET   2074
 
#define CR_TLS_SERVER_NOT_FOUND   2075
 
#define CR_ERROR_LAST   /*Copy last error nr:*/ 2075
 

Functions

void init_client_errs (void)
 
void finish_client_errs (void)
 
static const char * ER_CLIENT (int client_errno)
 

Variables

const char * client_errors []
 

Detailed Description

Error messages for MySQL clients.

These are constant and use the CR_ prefix. <mysqlclient_ername.h> will contain auto-generated mappings containing the symbolic name and the number from this file, and the english error messages in libmysql/errmsg.c.

Dynamic error messages for the daemon are in share/language/errmsg.sys. The server equivalent to <errmsg.h> is <mysqld_error.h>. The server equivalent to <mysqlclient_ername.h> is <mysqld_ername.h>.

Note that the auth subsystem also uses codes with a CR_ prefix.

Macro Definition Documentation

◆ CLIENT_ERRMAP

#define CLIENT_ERRMAP   2 /* Errormap used by my_error() */

◆ CR_ALREADY_CONNECTED

#define CR_ALREADY_CONNECTED   2058

◆ CR_AUTH_PLUGIN_CANNOT_LOAD

#define CR_AUTH_PLUGIN_CANNOT_LOAD   2059

◆ CR_AUTH_PLUGIN_ERR

#define CR_AUTH_PLUGIN_ERR   2061

◆ CR_CANT_GET_SESSION_DATA

#define CR_CANT_GET_SESSION_DATA   2073

◆ CR_CANT_READ_CHARSET

#define CR_CANT_READ_CHARSET   2019

◆ CR_COMMANDS_OUT_OF_SYNC

#define CR_COMMANDS_OUT_OF_SYNC   2014

◆ CR_COMPRESSION_WRONGLY_CONFIGURED

#define CR_COMPRESSION_WRONGLY_CONFIGURED   2066

◆ CR_CONN_HOST_ERROR

#define CR_CONN_HOST_ERROR   2003

◆ CR_CONN_UNKNOW_PROTOCOL

#define CR_CONN_UNKNOW_PROTOCOL   2047

◆ CR_CONNECTION_ERROR

#define CR_CONNECTION_ERROR   2002

◆ CR_DATA_TRUNCATED

#define CR_DATA_TRUNCATED   2032

◆ CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED

#define CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED   2065

◆ CR_DNS_SRV_LOOKUP_FAILED

#define CR_DNS_SRV_LOOKUP_FAILED   2070

◆ CR_DUPLICATE_CONNECTION_ATTR

#define CR_DUPLICATE_CONNECTION_ATTR   2060

◆ CR_EMBEDDED_CONNECTION

#define CR_EMBEDDED_CONNECTION   2021

◆ CR_ERROR_FIRST

#define CR_ERROR_FIRST   2000 /*Copy first error nr.*/

◆ CR_ERROR_LAST

#define CR_ERROR_LAST   /*Copy last error nr:*/ 2075

◆ CR_FETCH_CANCELED

#define CR_FETCH_CANCELED   2050

◆ CR_FILE_NAME_TOO_LONG

#define CR_FILE_NAME_TOO_LONG   2063

◆ CR_INSECURE_API_ERR

#define CR_INSECURE_API_ERR   2062

◆ CR_INVALID_BUFFER_USE

#define CR_INVALID_BUFFER_USE   2035

◆ CR_INVALID_CLIENT_CHARSET

#define CR_INVALID_CLIENT_CHARSET   2074

◆ CR_INVALID_CONN_HANDLE

#define CR_INVALID_CONN_HANDLE   2048

◆ CR_INVALID_FACTOR_NO

#define CR_INVALID_FACTOR_NO   2072

◆ CR_INVALID_PARAMETER_NO

#define CR_INVALID_PARAMETER_NO   2034

◆ CR_IPSOCK_ERROR

#define CR_IPSOCK_ERROR   2004

◆ CR_KERBEROS_USER_NOT_FOUND

#define CR_KERBEROS_USER_NOT_FOUND   2067

◆ CR_LOAD_DATA_LOCAL_INFILE_REALPATH_FAIL

#define CR_LOAD_DATA_LOCAL_INFILE_REALPATH_FAIL   2069

◆ CR_LOAD_DATA_LOCAL_INFILE_REJECTED

#define CR_LOAD_DATA_LOCAL_INFILE_REJECTED   2068

◆ CR_LOCALHOST_CONNECTION

#define CR_LOCALHOST_CONNECTION   2010

◆ CR_MALFORMED_PACKET

#define CR_MALFORMED_PACKET   2027

◆ CR_MANDATORY_TRACKER_NOT_FOUND

#define CR_MANDATORY_TRACKER_NOT_FOUND   2071

◆ CR_MAX_ERROR

#define CR_MAX_ERROR   2999

◆ CR_MIN_ERROR

#define CR_MIN_ERROR   2000 /* For easier client code */

◆ CR_NAMEDPIPE_CONNECTION

#define CR_NAMEDPIPE_CONNECTION   2015

◆ CR_NAMEDPIPEOPEN_ERROR

#define CR_NAMEDPIPEOPEN_ERROR   2017

◆ CR_NAMEDPIPESETSTATE_ERROR

#define CR_NAMEDPIPESETSTATE_ERROR   2018

◆ CR_NAMEDPIPEWAIT_ERROR

#define CR_NAMEDPIPEWAIT_ERROR   2016

◆ CR_NET_PACKET_TOO_LARGE

#define CR_NET_PACKET_TOO_LARGE   2020

◆ CR_NEW_STMT_METADATA

#define CR_NEW_STMT_METADATA   2057

◆ CR_NO_DATA

#define CR_NO_DATA   2051

◆ CR_NO_PARAMETERS_EXISTS

#define CR_NO_PARAMETERS_EXISTS   2033

◆ CR_NO_PREPARE_STMT

#define CR_NO_PREPARE_STMT   2030

◆ CR_NO_RESULT_SET

#define CR_NO_RESULT_SET   2053

◆ CR_NO_STMT_METADATA

#define CR_NO_STMT_METADATA   2052

◆ CR_NOT_IMPLEMENTED

#define CR_NOT_IMPLEMENTED   2054

◆ CR_NULL_POINTER

#define CR_NULL_POINTER   2029

◆ CR_OUT_OF_MEMORY

#define CR_OUT_OF_MEMORY   2008

◆ CR_PARAMS_NOT_BOUND

#define CR_PARAMS_NOT_BOUND   2031

◆ CR_PROBE_REPLICA_CONNECT

#define CR_PROBE_REPLICA_CONNECT   2024

◆ CR_PROBE_REPLICA_HOSTS

#define CR_PROBE_REPLICA_HOSTS   2023

◆ CR_PROBE_REPLICA_STATUS

#define CR_PROBE_REPLICA_STATUS   2022

◆ CR_PROBE_SOURCE_CONNECT

#define CR_PROBE_SOURCE_CONNECT   2025

◆ CR_SERVER_GONE_ERROR

#define CR_SERVER_GONE_ERROR   2006

◆ CR_SERVER_HANDSHAKE_ERR

#define CR_SERVER_HANDSHAKE_ERR   2012

◆ CR_SERVER_LOST

#define CR_SERVER_LOST   2013

◆ CR_SERVER_LOST_EXTENDED

#define CR_SERVER_LOST_EXTENDED   2055

◆ CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR

#define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR   2045

◆ CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR

#define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR   2039

◆ CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR

#define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR   2040

◆ CR_SHARED_MEMORY_CONNECT_MAP_ERROR

#define CR_SHARED_MEMORY_CONNECT_MAP_ERROR   2041

◆ CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR

#define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR   2038

◆ CR_SHARED_MEMORY_CONNECT_SET_ERROR

#define CR_SHARED_MEMORY_CONNECT_SET_ERROR   2046

◆ CR_SHARED_MEMORY_CONNECTION

#define CR_SHARED_MEMORY_CONNECTION   2037

◆ CR_SHARED_MEMORY_EVENT_ERROR

#define CR_SHARED_MEMORY_EVENT_ERROR   2044

◆ CR_SHARED_MEMORY_FILE_MAP_ERROR

#define CR_SHARED_MEMORY_FILE_MAP_ERROR   2042

◆ CR_SHARED_MEMORY_MAP_ERROR

#define CR_SHARED_MEMORY_MAP_ERROR   2043

◆ CR_SOCKET_CREATE_ERROR

#define CR_SOCKET_CREATE_ERROR   2001

◆ CR_SSL_CONNECTION_ERROR

#define CR_SSL_CONNECTION_ERROR   2026

◆ CR_SSL_FIPS_MODE_ERR

#define CR_SSL_FIPS_MODE_ERR   2064

◆ CR_STMT_CLOSED

#define CR_STMT_CLOSED   2056

◆ CR_TCP_CONNECTION

#define CR_TCP_CONNECTION   2011

◆ CR_TLS_SERVER_NOT_FOUND

#define CR_TLS_SERVER_NOT_FOUND   2075

◆ CR_UNKNOWN_ERROR

#define CR_UNKNOWN_ERROR   2000

◆ CR_UNKNOWN_HOST

#define CR_UNKNOWN_HOST   2005

◆ CR_UNSUPPORTED_PARAM_TYPE

#define CR_UNSUPPORTED_PARAM_TYPE   2036

◆ CR_UNUSED_1

#define CR_UNUSED_1   2049

◆ CR_VERSION_ERROR

#define CR_VERSION_ERROR   2007

◆ CR_WRONG_HOST_INFO

#define CR_WRONG_HOST_INFO   2009

◆ CR_WRONG_LICENSE

#define CR_WRONG_LICENSE   2028

Function Documentation

◆ ER_CLIENT()

static const char * ER_CLIENT ( int  client_errno)
inlinestatic

◆ finish_client_errs()

void finish_client_errs ( void  )

◆ init_client_errs()

void init_client_errs ( void  )

Variable Documentation

◆ client_errors

const char* client_errors[]
extern