mysql出错了,以前往往靠猜.有了这张表,一查就出来了.方便不少.特共享于众
1005:创建表失败
1006:创建数据库失败
1007:数据库已存在,创建数据库失败
1008:数据库不存在,删除数据库失败
1009:不能删除数据库文件导致删除数据库失败
1010:不能删除数据目录导致删除数据库失败
1011:删除数据库文件失败
1012:不能读取系统表中的记录
1020:记录已被其他用户修改
1021:硬盘剩余空间不足,请加大硬盘可用空间
1022:关键字重复,更改记录失败
1023:关闭时发生错误
1024:读文件错误
1025:更改名字时发生错误
1026:写文件错误
1032:记录不存在
1036:数据表是只读的,不能对它进行修改
1037:系统内存不足,请重启数据库或重启服务器
1038:用于排序的内存不足,请增大排序缓冲区
1040:已到达数据库的最大连接数,请加大数据库可用连接数
1041:系统内存不足
1042:无效的主机名
1043:无效连接
1044:当前用户没有访问数据库的权限
1045:不能连接数据库,用户名或密码错误
1048:字段不能为空
1049:数据库不存在
1050:数据表已存在
1051:数据表不存在
1054:字段不存在
1065:无效的SQL语句,SQL语句为空
1081:不能建立So cket连接
1114:数据表已满,不能容纳任何记录
1116:打开的数据表太多
1129:数据库出现异常,请重启数据库
1130:连接数据库失败,没有连接数据库的权限
1133:数据库用户不存在
1141:当前用户无权访问数据库
1142:当前用户无权访问数据表
1143:当前用户无权访问数据表中的字段
1146:数据表不存在
1147:未定义用户对数据表的访问权限
1149:SQL语句语法错误
1158:网络错误,出现读错误,请检查网络连接状况
1159:网络错误,读超时,请检查网络连接状况
1160:网络错误,出现写错误,请检查网络连接状况
1161:网络错误,写超时,请检查网络连接状况
1062:字段值重复,入库失败
1169:字段值重复,更新记录失败
1177:打开数据表失败
1180:提交事务失败
1181:回滚事务失败
1203:当前用户和数据库建立的连接已到达数据库的最大连接数,请增大可用的数据库连接数或重启数据库
1205:加锁超时
1211:当前用户没有创建用户的权限
1216:外键约束检查失败,更新子表记录失败
1217:外键约束检查失败,删除或修改主表记录失败
1226:当前用户使用的资源已超过所允许的资源,请重启数据库或重启服务器
1227:权限不足,您无权进行此操作
1235:MySQL版本过低,不具有本功能
第二部分新4.1.11,摘自DOCS mysql d_er
charac ter-set=utf-8 isher补充
#define ER_HAS HCHK1000
"hashch k",
#define ER_NIS AMCHK 1001
"isamch k",
#define ER_NO1002
"NO",
#define ER_YES 1003
"YES",
#define ER_CAN T_CRE ATE_F ILE 1004
"Cant create file %-.64s (errno: %d)",
#define ER_CAN T_CRE ATE_T ABLE1005
"Cant create table%-.64s (errno: %d)",
#define ER_CAN T_CRE ATE_D B 1006
"Cant create databa se %-.64s (errno: %d)",
#define ER_DB_CREAT E_EXI STS 1007
"Cant create databa se %-.64s; databa se exists",
#define ER_DB_DROP_EXIST S 1008
"Cant drop databa se %-.64s; databa se doesnt exist",
#define ER_DB_DROP_DELET E 1009
"Errordroppi ng databa se (cant delete %-.64s, errno: %d)",
#define ER_DB_DROP_RMDIR 1010
"Errordroppi ng databa se (cant rmdir%-.64s, errno: %d)",
#define ER_CAN T_DEL ETE_F ILE 1011
"Erroron delete of %-.64s (errno: %d)",
#define ER_CAN T_FIN D_SYS TEM_R EC 1012
"Cant read record in system table",
#define ER_CAN T_GET_STAT 1013
"Cant get status of %-.64s (errno: %d)",
#define ER_CAN T_GET_WD 1014
"Cant get workin g direct ory (errno: %d)",
#define ER_CAN T_LOC K 1015
"Cant lock file (errno: %d)",
#define ER_CAN T_OPE N_FIL E 1016
"Cant open file: %-.64s (errno: %d)",
#define ER_FIL E_NOT_FOUN D 1017
"Cant find file: %-.64s (errno: %d)",
#define ER_CAN T_REA D_DIR 1018
"Cant read dir of %-.64s (errno: %d)",
#define ER_CAN T_SET_WD 1019
"Cant change dir to %-.64s (errno: %d)",
#define ER_CHE CKREA D 1020
"Record has change d sincelast read in table%-.64s",
#define ER_DIS K_FUL L 1021
"Disk full (%s). Waitin g for someon e to free some space...",#define ER_DUP_KEY1022
drop table if exists user"Cant write, duplic ate key in table%-.64s",
#define ER_ERR OR_ON_CLOS E 1023
"Erroron closeof %-.64s (errno: %d)",
#define ER_ERR OR_ON_READ 1024
"Errorreadin g file %-.64s (errno: %d)",
#define ER_ERR OR_ON_RENA ME 1025
"Erroron rename of %-.64s to %-.64s (errno: %d)",
#define ER_ERR OR_ON_WRIT E 1026
"Errorwritin g file %-.64s (errno: %d)",
#define ER_FIL E_USE D 1027
"%-.64s is locked agains t change",
#define ER_FIL SORT_ABORT 1028
"So瘀牡?剕o鸞?rt aborte d",
#define ER_FOR M_NOT_FOUN D 1029
"View %-.64s doesnt existfor %-.64s",
#define ER_GET_ERRN O 1030
"Got error%d from storag e engine",
#define ER_ILL EGAL_HA 1031
"Tablestorag e engine for %-.64s doesnt have this option",#define ER_KEY_NOT_FOUND 1032
"Cant find record in %-.64s",
#define ER_NOT_FORM_FILE 1033
"Incorr ect inform ation in file: %-.64s",
#define ER_NOT_KEYF ILE 1034
"Incorr ect key file for table: %-.64s; try to repair it",
#define ER_OLD_KEYF ILE 1035
"Old key file for table%-.64s; repair it!",
#define ER_OPE N_AS_READO NLY 1036
"Table%-.64s is read only",
#define ER_OUT OFMEM ORY 1037
"Out of memory. Restar t daemon and try again(needed %d bytes)",
#define ER_OUT_OF_S ORTME MORY1038
"Out of sort memory. Increa se daemon sort buffer size",
#define ER_UNE XPECT ED_EO F 1039
"Unexpe ctedeof foundwhen readin g file %-.64s (errno: %d)",
#define ER_CON_COUN T_ERR OR 1040
"Too many connec tions",
#define ER_OUT_OF_R ESOUR CES 1041
"Out of memory; Checkif mysqld or some otherproces s uses all availa ble memory. If not you may have to use ulimit to allowmysqld to use more memory or you can add more swap space",
#define ER_BAD_HOST_ERRO R 1042
"Cant get hostna me for your addres s",
#define ER_HAN DSHAK E_ERR OR 1043
"Bad handsh ake",
#define ER_DBA CCESS_DENI ED_ER ROR 1044
"Access denied for user: %-.32s@%-.64s to databa se %-.64s",
#define ER_ACC ESS_D ENIED_ERRO R 1045
"Access denied for user: %-.32s@%-.64s (Usingpasswo rd: %s)",
#define ER_NO_DB_ER ROR 1046
"No Databa se Select ed",
#define ER_UNK NOWN_COM_E RROR1047
"Unknow n comman d",
#define ER_BAD_NULL_ERRO R 1048
"Column %-.64s cannot be null",
#define ER_BAD_DB_E RROR1049
"Unknow n databa se %-.64s",
#define ER_TAB LE_EX ISTS_ERROR 1050
"Table%-.64s alread y exists",
#define ER_BAD_TABL E_ERR OR 1051
"Unknow n table%-.64s",
#define ER_NON_UNIQ_ERRO R 1052
"Column: %-.64s in %-.64s is ambigu ous",
#define ER_SER VER_S HUTDO WN 1053
"Server shutdo wn in progre ss",
#define ER_BAD_FIEL D_ERR OR 1瘀牡?剕o鸞?054
"Unknow n column %-.64s in %-.64s",
#define ER_WRO NG_FI ELD_W ITH_G ROUP1055
"%-.64s isnt in GROUPBY",
#define ER_WRO NG_GR OUP_F IELD1056
"Cant groupon %-.64s",
#define ER_WRO NG_SU M_SEL ECT 1057
"Statem ent has sum functi ons and column s in same statem ent",
#define ER_WRO NG_VA LUE_C OUNT1058
"Column countdoesnt matchvaluecount",
#define ER_TOO_LONG_IDEN T 1059
"Identi fiername %-.100s is too long",
#define ER_DUP_FIEL DNAME 1060
"Duplic ate column name %-.64s",
#define ER_DUP_KEYN AME 1061
"Duplic ate key name %-.64s",
#define ER_DUP_ENTR Y 1062
"Duplic ate entry%-.64s for key %d",
#define ER_WRO NG_FI ELD_S PEC 1063
"Incorr ect column specif ier for column %-.64s",
#define ER_PAR SE_ER ROR 1064
"%s near %-.80s at line %d",
#define ER_EMP TY_QU ERY 1065
"Querywas empty",
#define ER_NON UNIQ_TABLE 1066
"Not unique table/alias: %-.64s",
#define ER_INV ALID_DEFAU LT 1067
"Invali d defaul t valuefor %-.64s",
#define ER_MUL TIPLE_PRI_KEY 1068
"Multip le primar y key define d",
#define ER_TOO_MANY_KEYS 1069
"Too many keys specif ied; max %d keys allowe d",
#define ER_TOO_MANY_KEY_PARTS 1070
"Too many key partsspecif ied. Max %d partsallowe d",
#define ER_TOO_LONG_KEY1071
"Specif ied key was too long; max key length is %d bytes",
#define ER_KEY_COLU MN_DO ES_NO T_EXI TS 1072
"Key column %-.64s doesnt existin table",
#define ER_BLO B_USE D_AS_KEY 1073
"BLOB column %-.64s cant be used in key specif icati on with the used tabletype",
#define ER_TOO_BIG_FIELD LENGT H 1074
"Too big column length for column %-.64s (max = %d). Use BLOB instea d",
#define ER_WRO NG_AU TO_KE Y 1075
"Incorr ect tabledefini tion; Therecan only be one auto column and it must be define d as a key",#define ER_REA DY 1076
"%s: readyfor connec tions.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论