MYSQL之异常代码-mysql异常代码与JAVA实现

MYSQL之错误代码—-mysql错误代码与JAVA实现

his chapter lists the errors that may appear when you call MySQL from any host language. The first list displays server error messages. The second list displays client program messages.

Server error information comes from the following files:

The Error values and the symbols in parentheses correspond to definitions in the include/mysqld_error.h MySQL source file.

The SQLSTATE values correspond to definitions in the include/sql_state.h MySQL source file.

SQLSTATE error codes are displayed only if you use MySQL version 4.1 and up. SQLSTATE codes were added for compatibility with X/Open, ANSI, and ODBC behavior.

The Message values correspond to the error messages that are listed in the sql/share/english/errmsg.txt file. %d or %s represent numbers or strings that are substituted into the messages %when they are displayed.

Because updates are frequent, it is possible that these files 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’

Er

MYSQL之异常代码-mysql异常代码与JAVA实现

相关文章:

你感兴趣的文章:

标签云: