Vous êtes sur la page 1sur 34

ERROR CODES IN MYSQL

Sources of Error Information


There are several sources of error information in MySQL: Each SQL statement executed results in an error code, an SQLSTATE value, and an error message. These errors are returned from the server side. Errors can occur on the client side, usually involving problems communicating with the server. SQL statement warning and error information is available through the SHOW WARNINGS and SHOW ERRORS statements. The warning_count and error_count system variables provide counts of the number of warnings and errors. SHOW SLAVE STATUS statement output includes information about replication errors occurring on the slave side. SHOW ENGINE INNODB STATUS statement output includes information about the most recent foreign key error if a CREATE TABLE statement for an InnoDB table fails. The perror program provides information from the command line about error numbers

Types of Error Values


When an error occurs in MySQL, the server returns two types of error values: A MySQL-specific error code. This value is numeric. It is not portable to other database systems. An SQLSTATE value. The value is a five-character string (for example, '42S02'). The values are specified by ANSI SQL and ODBC and are more standardized. A message string that provides a textual description of the error is also available. When an error occurs, you can access the MySQL error code, the SQLSTATE value, and the message string using C API functions: MySQL error code: Call mysql_errno() SQLSTATE value: Call mysql_sqlstate() Error message: Call mysql_error()

For prepared statements, the corresponding error functions are mysql_stmt_errno(), mysql_stmt_sqlstate(), and mysql_stmt_error(). The first two characters of an SQLSTATE value indicate the error class: '00' indicates success. '01' indicates a warning. '02' indicates not found. These values are relevant only within the context of cursors and are used to control what happens when a cursor reaches the end of a data set. Other values indicate an exception.

Server Error Codes and Messages


MySQL programs have access to several types of error information when the server returns an error. For example, the mysql client program displays errors using the following format: shell> SELECT * FROM no_such_table; ERROR 1146 (42S02): Table 'test.no_such_table' doesn't exist

The message displayed contains three types of information: A numeric error code (1146). This number is MySQL-specific and is not portable to other database systems. A five-character SQLSTATE value ('42S02'). The values are specified by ANSI SQL and ODBC and are more standardized. Not all MySQL error numbers are mapped to SQLSTATE error codes. The value 'HY000' (general error) is used for unmapped errors. A message string that provides a textual description of the error. For error checking, use error codes, not error messages. Error messages do not change often, but it is possible. Also if the database administrator changes the language setting, that affects the language of error messages. Error codes are stable across GA releases of a given MySQL series. Before a series reaches GA status, new codes may still be under development and subject to change. Server error information comes from the following source files. For details about the way that error information is defined, see the MySQL Internals manual, available at http://forge.mysql.com/wiki/MySQL_Internals.

Error message information is listed in the share/errmsg.txt file. %d and %s represent numbers and strings, respectively, that are substituted into the Message values when they are displayed. The Error values listed in share/errmsg.txt are used to generate the definitions in the include/mysqld_error.h and include/mysqld_ername.h MySQL source files. The SQLSTATE values listed in share/errmsg.txt are used to generate the definitions in the include/sql_state.h MySQL source file. Because updates are frequent, it is possible that those files will contain additional error information not listed here. Error: 1000 SQLSTATE: HY000 (ER_HASHCHK) Message: hashchk Error: 1001 SQLSTATE: HY000 (ER_NISAMCHK) Message: isamchk Error: 1002 SQLSTATE: HY000 (ER_NO) Message: NO

Error: 1003 SQLSTATE: HY000 (ER_YES) Message: YES Error: 1004 SQLSTATE: HY000 (ER_CANT_CREATE_FILE) Message: Can't create file '%s' (errno: %d) Error: 1005 SQLSTATE: HY000 (ER_CANT_CREATE_TABLE) Message: Can't create table '%s' (errno: %d) Error: 1006 SQLSTATE: HY000 (ER_CANT_CREATE_DB) Message: Can't create database '%s' (errno: %d) Error: 1007 SQLSTATE: HY000 (ER_DB_CREATE_EXISTS) Message: Can't create database '%s'; database exists Error: 1008 SQLSTATE: HY000 (ER_DB_DROP_EXISTS) Message: Can't drop database '%s'; database doesn't exist Error: 1009 SQLSTATE: HY000 (ER_DB_DROP_DELETE) Message: Error dropping database (can't delete '%s', errno: %d)

Error: 1010 SQLSTATE: HY000 (ER_DB_DROP_RMDIR) Message: Error dropping database (can't rmdir '%s', errno: %d) Error: 1011 SQLSTATE: HY000 (ER_CANT_DELETE_FILE) Message: Error on delete of '%s' (errno: %d) Error: 1012 SQLSTATE: HY000 (ER_CANT_FIND_SYSTEM_REC) Message: Can't read record in system table Error: 1013 SQLSTATE: HY000 (ER_CANT_GET_STAT) Message: Can't get status of '%s' (errno: %d) Error: 1014 SQLSTATE: HY000 (ER_CANT_GET_WD) Message: Can't get working directory (errno: %d) Error: 1015 SQLSTATE: HY000 (ER_CANT_LOCK) Message: Can't lock file (errno: %d) Error: 1016 SQLSTATE: HY000 (ER_CANT_OPEN_FILE) Message: Can't open file: '%s' (errno: %d)

Error: 1017 SQLSTATE: HY000 (ER_FILE_NOT_FOUND) Message: Can't find file: '%s' (errno: %d) Error: 1018 SQLSTATE: HY000 (ER_CANT_READ_DIR) Message: Can't read dir of '%s' (errno: %d) Error: 1019 SQLSTATE: HY000 (ER_CANT_SET_WD) Message: Can't change dir to '%s' (errno: %d) Error: 1020 SQLSTATE: HY000 (ER_CHECKREAD) Message: Record has changed since last read in table '%s' Error: 1021 SQLSTATE: HY000 (ER_DISK_FULL) Message: Disk full (%s); waiting for someone to free some space... Error: 1022 SQLSTATE: 23000 (ER_DUP_KEY) Message: Can't write; duplicate key in table '%s' Error: 1023 SQLSTATE: HY000 (ER_ERROR_ON_CLOSE) Message: Error on close of '%s' (errno: %d)

Error: 1024 SQLSTATE: HY000 (ER_ERROR_ON_READ) Message: Error reading file '%s' (errno: %d) Error: 1025 SQLSTATE: HY000 (ER_ERROR_ON_RENAME) Message: Error on rename of '%s' to '%s' (errno: %d) Error: 1026 SQLSTATE: HY000 (ER_ERROR_ON_WRITE) Message: Error writing file '%s' (errno: %d) Error: 1027 SQLSTATE: HY000 (ER_FILE_USED) Message: '%s' is locked against change Error: 1028 SQLSTATE: HY000 (ER_FILSORT_ABORT) Message: Sort aborted Error: 1029 SQLSTATE: HY000 (ER_FORM_NOT_FOUND) Message: View '%s' doesn't exist for '%s' Error: 1030 SQLSTATE: HY000 (ER_GET_ERRNO) Message: Got error %d from storage engine

Error: 1031 SQLSTATE: HY000 (ER_ILLEGAL_HA) Message: Table storage engine for '%s' doesn't have this option Error: 1032 SQLSTATE: HY000 (ER_KEY_NOT_FOUND) Message: Can't find record in '%s' Error: 1033 SQLSTATE: HY000 (ER_NOT_FORM_FILE) Message: Incorrect information in file: '%s' Error: 1034 SQLSTATE: HY000 (ER_NOT_KEYFILE) Message: Incorrect key file for table '%s'; try to repair it Error: 1035 SQLSTATE: HY000 (ER_OLD_KEYFILE) Message: Old key file for table '%s'; repair it! Error: 1036 SQLSTATE: HY000 (ER_OPEN_AS_READONLY) Message: Table '%s' is read only Error: 1037 SQLSTATE: HY001 (ER_OUTOFMEMORY) Message: Out of memory; restart server and try again (needed %d bytes)

Error: 1038 SQLSTATE: HY001 (ER_OUT_OF_SORTMEMORY) Message: Out of sort memory; increase server sort buffer size Error: 1039 SQLSTATE: HY000 (ER_UNEXPECTED_EOF) Message: Unexpected EOF found when reading file '%s' (errno: %d) Error: 1040 SQLSTATE: 08004 (ER_CON_COUNT_ERROR) Message: Too many connections Error: 1041 SQLSTATE: HY000 (ER_OUT_OF_RESOURCES) Message: Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space Error: 1042 SQLSTATE: 08S01 (ER_BAD_HOST_ERROR) Message: Can't get hostname for your address Error: 1043 SQLSTATE: 08S01 (ER_HANDSHAKE_ERROR) Message: Bad handshake

Error: 1044 SQLSTATE: 42000 (ER_DBACCESS_DENIED_ERROR) Message: Access denied for user '%s'@'%s' to database '%s' Error: 1045 SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR) Message: Access denied for user '%s'@'%s' (using password: %s) Error: 1046 SQLSTATE: 3D000 (ER_NO_DB_ERROR) Message: No database selected Error: 1047 SQLSTATE: 08S01 (ER_UNKNOWN_COM_ERROR) Message: Unknown command Error: 1048 SQLSTATE: 23000 (ER_BAD_NULL_ERROR) Message: Column '%s' cannot be null Error: 1049 SQLSTATE: 42000 (ER_BAD_DB_ERROR) Message: Unknown database '%s' Error: 1050 SQLSTATE: 42S01 (ER_TABLE_EXISTS_ERROR)

Message: Table '%s' already exists Error: 1051 SQLSTATE: 42S02 (ER_BAD_TABLE_ERROR) Message: Unknown table '%s' Error: 1052 SQLSTATE: 23000 (ER_NON_UNIQ_ERROR) Message: Column '%s' in %s is ambiguous Error: 1053 SQLSTATE: 08S01 (ER_SERVER_SHUTDOWN) Message: Server shutdown in progress Error: 1054 SQLSTATE: 42S22 (ER_BAD_FIELD_ERROR) Message: Unknown column '%s' in '%s' Error: 1055 SQLSTATE: 42000 (ER_WRONG_FIELD_WITH_GROUP) Message: '%s' isn't in GROUP BY Error: 1056 SQLSTATE: 42000 (ER_WRONG_GROUP_FIELD) Message: Can't group on '%s' Error: 1057 SQLSTATE: 42000 (ER_WRONG_SUM_SELECT)

Message: Statement has sum functions and columns in same statement Error: 1058 SQLSTATE: 21S01 (ER_WRONG_VALUE_COUNT) Message: Column count doesn't match value count Error: 1059 SQLSTATE: 42000 (ER_TOO_LONG_IDENT) Message: Identifier name '%s' is too long Error: 1060 SQLSTATE: 42S21 (ER_DUP_FIELDNAME) Message: Duplicate column name '%s' Error: 1061 SQLSTATE: 42000 (ER_DUP_KEYNAME) Message: Duplicate key name '%s' Error: 1062 SQLSTATE: 23000 (ER_DUP_ENTRY) Message: Duplicate entry '%s' for key %d Error: 1063 SQLSTATE: 42000 (ER_WRONG_FIELD_SPEC) Message: Incorrect column specifier for column '%s' Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR)

Message: %s near '%s' at line %d Error: 1065 SQLSTATE: 42000 (ER_EMPTY_QUERY) Message: Query was empty Error: 1066 SQLSTATE: 42000 (ER_NONUNIQ_TABLE) Message: Not unique table/alias: '%s' Error: 1067 SQLSTATE: 42000 (ER_INVALID_DEFAULT) Message: Invalid default value for '%s' Error: 1068 SQLSTATE: 42000 (ER_MULTIPLE_PRI_KEY) Message: Multiple primary key defined Error: 1069 SQLSTATE: 42000 (ER_TOO_MANY_KEYS) Message: Too many keys specified; max %d keys allowed Error: 1070 SQLSTATE: 42000 (ER_TOO_MANY_KEY_PARTS) Message: Too many key parts specified; max %d parts allowed Error: 1071 SQLSTATE: 42000 (ER_TOO_LONG_KEY)

Message: Specified key was too long; max key length is %d bytes Error: 1072 SQLSTATE: 42000 (ER_KEY_COLUMN_DOES_NOT_EXITS) Message: Key column '%s' doesn't exist in table Error: 1073 SQLSTATE: 42000 (ER_BLOB_USED_AS_KEY) Message: BLOB column '%s' can't be used in key specification with the used table type Error: 1074 SQLSTATE: 42000 (ER_TOO_BIG_FIELDLENGTH) Message: Column length too big for column '%s' (max = %lu); use BLOB or TEXT instead Error: 1075 SQLSTATE: 42000 (ER_WRONG_AUTO_KEY) Message: Incorrect table definition; there can be only one auto column and it must be defined as a key Error: 1076 SQLSTATE: HY000 (ER_READY) Message: %s: ready for connections. Version: '%s' socket: '%s' port: %d

Error: 1077 SQLSTATE: HY000 (ER_NORMAL_SHUTDOWN) Message: %s: Normal shutdown Error: 1078 SQLSTATE: HY000 (ER_GOT_SIGNAL) Message: %s: Got signal %d. Aborting! Error: 1079 SQLSTATE: HY000 (ER_SHUTDOWN_COMPLETE) Message: %s: Shutdown complete Error: 1080 SQLSTATE: 08S01 (ER_FORCING_CLOSE) Message: %s: Forcing close of thread %ld user: '%s' Error: 1081 SQLSTATE: 08S01 (ER_IPSOCK_ERROR) Message: Can't create IP socket Error: 1082 SQLSTATE: 42S12 (ER_NO_SUCH_INDEX) Message: Table '%s' has no index like the one used in CREATE INDEX; recreate the table Error: 1083 SQLSTATE: 42000 (ER_WRONG_FIELD_TERMINATORS)

Message: Field separator argument is not what is expected; check the manual Error: 1084 SQLSTATE: 42000 (ER_BLOBS_AND_NO_TERMINATED) Message: You can't use fixed rowlength with BLOBs; please use 'fields terminated by' Error: 1085 SQLSTATE: HY000 (ER_TEXTFILE_NOT_READABLE) Message: The file '%s' must be in the database directory or be readable by all Error: 1086 SQLSTATE: HY000 (ER_FILE_EXISTS_ERROR) Message: File '%s' already exists Error: 1087 SQLSTATE: HY000 (ER_LOAD_INFO) Message: Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld Error: 1088 SQLSTATE: HY000 (ER_ALTER_INFO) Message: Records: %ld Duplicates: %ld

Error: 1089 SQLSTATE: HY000 (ER_WRONG_SUB_KEY) Message: Incorrect sub part key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique sub keys Error: 1090 SQLSTATE: 42000 (ER_CANT_REMOVE_ALL_FIELDS) Message: You can't delete all columns with ALTER TABLE; use DROP TABLE instead Error: 1091 SQLSTATE: 42000 (ER_CANT_DROP_FIELD_OR_KEY) Message: Can't DROP '%s'; check that column/key exists Error: 1092 SQLSTATE: HY000 (ER_INSERT_INFO) Message: Records: %ld Duplicates: %ld Warnings: %ld Error: 1093 SQLSTATE: HY000 (ER_UPDATE_TABLE_USED) Message: You can't specify target table '%s' for update in FROM clause Error: 1094 SQLSTATE: HY000 (ER_NO_SUCH_THREAD)

Message: Unknown thread id: %lu Error: 1095 SQLSTATE: HY000 (ER_KILL_DENIED_ERROR) Message: You are not owner of thread %lu Error: 1096 SQLSTATE: HY000 (ER_NO_TABLES_USED) Message: No tables used Error: 1097 SQLSTATE: HY000 (ER_TOO_BIG_SET)

Message: Too many strings for column %s and SET Error: 1098 SQLSTATE: HY000 (ER_NO_UNIQUE_LOGFILE) Message: Can't generate a unique log-filename %s.(1-999) Error: 1099 SQLSTATE: HY000 (ER_TABLE_NOT_LOCKED_FOR_WRITE) Message: Table '%s' was locked with a READ lock and can't be updated Error: 1100 SQLSTATE: HY000 (ER_TABLE_NOT_LOCKED)

Message: Table '%s' was not locked with LOCK TABLES Error: 1101 SQLSTATE: 42000 (ER_BLOB_CANT_HAVE_DEFAULT) Message: BLOB/TEXT column '%s' can't have a default value Error: 1102 SQLSTATE: 42000 (ER_WRONG_DB_NAME) Message: Incorrect database name '%s' Error: 1103 SQLSTATE: 42000 (ER_WRONG_TABLE_NAME) Message: Incorrect table name '%s' Error: 1104 SQLSTATE: 42000 (ER_TOO_BIG_SELECT) Message: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay Error: 1105 SQLSTATE: HY000 (ER_UNKNOWN_ERROR) Message: Unknown error Error: 1106 SQLSTATE: 42000 (ER_UNKNOWN_PROCEDURE) Message: Unknown procedure '%s'

Error: 1107 SQLSTATE: 42000 (ER_WRONG_PARAMCOUNT_TO_PROCEDURE) Message: Incorrect parameter count to procedure '%s' Error: 1108 SQLSTATE: HY000 (ER_WRONG_PARAMETERS_TO_PROCEDURE) Message: Incorrect parameters to procedure '%s' Error: 1109 SQLSTATE: 42S02 (ER_UNKNOWN_TABLE) Message: Unknown table '%s' in %s Error: 1110 SQLSTATE: 42000 (ER_FIELD_SPECIFIED_TWICE) Message: Column '%s' specified twice Error: 1111 SQLSTATE: HY000 (ER_INVALID_GROUP_FUNC_USE) Message: Invalid use of group function Error: 1112 SQLSTATE: 42000 (ER_UNSUPPORTED_EXTENSION)

Message: Table '%s' uses an extension that doesn't exist in this MySQL version Error: 1113 SQLSTATE: 42000 (ER_TABLE_MUST_HAVE_COLUMNS) Message: A table must have at least 1 column Error: 1114 SQLSTATE: HY000 (ER_RECORD_FILE_FULL) Message: The table '%s' is full Error: 1115 SQLSTATE: 42000 (ER_UNKNOWN_CHARACTER_SET) Message: Unknown character set: '%s' Error: 1116 SQLSTATE: HY000 (ER_TOO_MANY_TABLES) Message: Too many tables; MySQL can only use %d tables in a join Error: 1117 SQLSTATE: HY000 (ER_TOO_MANY_FIELDS) Message: Too many columns Error: 1118 SQLSTATE: 42000 (ER_TOO_BIG_ROWSIZE)

Message: Row size too large. The maximum row size for the used table type, not counting BLOBs, is %ld. You have to change some columns to TEXT or BLOBs Error: 1119 SQLSTATE: HY000 (ER_STACK_OVERRUN) Message: Thread stack overrun: Used: %ld of a %ld stack. Use 'mysqld -O thread_stack=#' to specify a bigger stack if needed Error: 1120 SQLSTATE: 42000 (ER_WRONG_OUTER_JOIN) Message: Cross dependency found in OUTER JOIN; examine your ON conditions Error: 1121 SQLSTATE: 42000 (ER_NULL_COLUMN_IN_INDEX) Message: Column '%s' is used with UNIQUE or INDEX but is not defined as NOT NULL Error: 1122 SQLSTATE: HY000 (ER_CANT_FIND_UDF) Message: Can't load function '%s' Error: 1123 SQLSTATE: HY000 (ER_CANT_INITIALIZE_UDF) Message: Can't initialize function '%s'; %s Error: 1124 SQLSTATE: HY000 (ER_UDF_NO_PATHS)

Message: No paths allowed for shared library Error: 1125 SQLSTATE: HY000 (ER_UDF_EXISTS) Message: Function '%s' already exists Error: 1126 SQLSTATE: HY000 (ER_CANT_OPEN_LIBRARY)

Client Error Codes and Messages


Client error information comes from the following source files: The Error values and the symbols in parentheses correspond to definitions in the include/errmsg.h MySQL source file. The Message values correspond to the error messages that are listed in the libmysql/errmsg.c file. %d and %s represent numbers and strings, respectively, that are substituted into the messages when they are displayed. Because updates are frequent, it is possible that those files will contain additional error information not listed here. Error: 2000 (CR_UNKNOWN_ERROR) Message: Unknown MySQL error Error: 2001 (CR_SOCKET_CREATE_ERROR)

Message: Can't create UNIX socket (%d) Error: 2002 (CR_CONNECTION_ERROR) Message: Can't connect to local MySQL server through socket '%s' (%d) Error: 2003 (CR_CONN_HOST_ERROR) Message: Can't connect to MySQL server on '%s' (%d) Error: 2004 (CR_IPSOCK_ERROR) Message: Can't create TCP/IP socket (%d) Error: 2005 (CR_UNKNOWN_HOST) Message: Unknown MySQL server host '%s' (%d) Error: 2006 (CR_SERVER_GONE_ERROR) Message: MySQL server has gone away Error: 2007 (CR_VERSION_ERROR) Message: Protocol mismatch; server version = %d, client version = %d

Error: 2008 (CR_OUT_OF_MEMORY) Message: MySQL client ran out of memory Error: 2009 (CR_WRONG_HOST_INFO) Message: Wrong host info Error: 2010 (CR_LOCALHOST_CONNECTION) Message: Localhost via UNIX socket Error: 2011 (CR_TCP_CONNECTION) Message: %s via TCP/IP Error: 2012 (CR_SERVER_HANDSHAKE_ERR) Message: Error in server handshake Error: 2013 (CR_SERVER_LOST) Message: Lost connection to MySQL server during query Error: 2014 (CR_COMMANDS_OUT_OF_SYNC) Message: Commands out of sync; you can't run this command now

Error: 2015 (CR_NAMEDPIPE_CONNECTION) Message: Named pipe: %s Error: 2016 (CR_NAMEDPIPEWAIT_ERROR) Message: Can't wait for named pipe to host: %s pipe: %s (%lu) Error: 2017 (CR_NAMEDPIPEOPEN_ERROR) Message: Can't open named pipe to host: %s pipe: %s (%lu) Error: 2018 (CR_NAMEDPIPESETSTATE_ERROR) Message: Can't set state of named pipe to host: %s pipe: %s (%lu) Error: 2019 (CR_CANT_READ_CHARSET) Message: Can't initialize character set %s (path: %s) Error: 2020 (CR_NET_PACKET_TOO_LARGE) Message: Got packet bigger than 'max_allowed_packet' bytes Error: 2021 (CR_EMBEDDED_CONNECTION) Message: Embedded server

Error: 2022 (CR_PROBE_SLAVE_STATUS) Message: Error on SHOW SLAVE STATUS: Error: 2023 (CR_PROBE_SLAVE_HOSTS) Message: Error on SHOW SLAVE HOSTS: Error: 2024 (CR_PROBE_SLAVE_CONNECT) Message: Error connecting to slave: Error: 2025 (CR_PROBE_MASTER_CONNECT) Message: Error connecting to master: Error: 2026 (CR_SSL_CONNECTION_ERROR) Message: SSL connection error Error: 2027 (CR_MALFORMED_PACKET) Message: Malformed packet Error: 2028 (CR_WRONG_LICENSE) Message: This client library is licensed only for use with MySQL servers having '%s' license

Error: 2029 (CR_NULL_POINTER) Message: Invalid use of null pointer Error: 2030 (CR_NO_PREPARE_STMT) Message: Statement not prepared Error: 2031 (CR_PARAMS_NOT_BOUND) Message: No data supplied for parameters in prepared statement Error: 2032 (CR_DATA_TRUNCATED) Message: Data truncated Error: 2033 (CR_NO_PARAMETERS_EXISTS) Message: No parameters exist in the statement Error: 2034 (CR_INVALID_PARAMETER_NO) Message: Invalid parameter number Error: 2035 (CR_INVALID_BUFFER_USE)

Message: Can't send long data for non-string/non-binary data types (parameter: %d) Error: 2036 (CR_UNSUPPORTED_PARAM_TYPE) Message: Using unsupported buffer type: %d (parameter: %d) Error: 2037 (CR_SHARED_MEMORY_CONNECTION) Message: Shared memory: %s Error: 2038 (CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR) Message: Can't open shared memory; client could not create request event (%lu) Error: 2039 (CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR) Message: Can't open shared memory; no answer event received from server (%lu) Error: 2040 (CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR) Message: Can't open shared memory; server could not allocate file mapping (%lu)

Error: 2041 (CR_SHARED_MEMORY_CONNECT_MAP_ERROR) Message: Can't open shared memory; server could not get pointer to file mapping (%lu) Error: 2042 (CR_SHARED_MEMORY_FILE_MAP_ERROR) Message: Can't open shared memory; client could not allocate file mapping (%lu) Error: 2043 (CR_SHARED_MEMORY_MAP_ERROR) Message: Can't open shared memory; client could not get pointer to file mapping (%lu) Error: 2044 (CR_SHARED_MEMORY_EVENT_ERROR) Message: Can't open shared memory; client could not create %s event (%lu) Error: 2045 (CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR) Message: Can't open shared memory; no answer from server (%lu) Error: 2046 (CR_SHARED_MEMORY_CONNECT_SET_ERROR)

Message: Can't open shared memory; cannot send request event to server (%lu) Error: 2047 (CR_CONN_UNKNOW_PROTOCOL) Message: Wrong or unknown protocol Error: 2048 (CR_INVALID_CONN_HANDLE) Message: Invalid connection handle Error: 2049 (CR_SECURE_AUTH) Message: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled) Error: 2050 (CR_FETCH_CANCELED) Message: Row retrieval was canceled by mysql_stmt_close() call Error: 2051 (CR_NO_DATA) Message: Attempt to read column without prior row fetch Error: 2052 (CR_NO_STMT_METADATA) Message: Prepared statement contains no metadata

Error: 2053 (CR_NO_RESULT_SET) Message: Attempt to read a row while there is no result set associated with the statement Error: 2054 (CR_NOT_IMPLEMENTED) Message: This feature is not implemented yet Error: 2055 (CR_SERVER_LOST_EXTENDED) Message: Lost connection to MySQL server at '%s', system error: %d