Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
115 views

Handle Error Mysql

This document defines SQLSTATE error codes and error messages for various error numbers. It includes over 100 error handlers that map error numbers to error codes and messages like "hy000 (er_hashchk) hashchk" for error 1000 and "hy000 (er_nisamchk) isamchk" for error 1001. The error codes and messages cover a wide range of potential errors from database, table, and query issues.

Uploaded by

BUNKHY LEM
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Handle Error Mysql

This document defines SQLSTATE error codes and error messages for various error numbers. It includes over 100 error handlers that map error numbers to error codes and messages like "hy000 (er_hashchk) hashchk" for error 1000 and "hy000 (er_nisamchk) isamchk" for error 1001. The error codes and messages cover a wide range of potential errors from database, table, and query issues.

Uploaded by

BUNKHY LEM
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

declare exit handler for 1000 select "hy000 (er_hashchk) hashchk" as 'error_no

sqlstate';
declare exit handler for 1001 select "hy000 (er_nisamchk) isamchk" as
'error_no sqlstate';
declare exit handler for 1002 select "hy000 (er_no) no" as 'error_no sqlstate';
declare exit handler for 1003 select "hy000 (er_yes) yes" as 'error_no sqlstate';
declare exit handler for 1004 select "hy000 (er_cant_create_file) can't create
file '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1005 select "hy000 (er_cant_create_table) can't create
table '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1006 select "hy000 (er_cant_create_db) can't create
database '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1007 select "hy000 (er_db_create_exists) can't create
database '%s'; database exists" as 'error_no sqlstate';
declare exit handler for 1008 select "hy000 (er_db_drop_exists) can't drop
database '%s'; database doesn't exist" as 'error_no sqlstate';
declare exit handler for 1012 select "hy000 (er_cant_find_system_rec) can't
read record in system table" as 'error_no sqlstate';
declare exit handler for 1013 select "hy000 (er_cant_get_stat) can't get status of
'%s' (errn" as 'error_no sqlstate';
declare exit handler for 1014 select "hy000 (er_cant_get_wd) can't get working
directory (errn" as 'error_no sqlstate';
declare exit handler for 1015 select "hy000 (er_cant_lock) can't lock file (errn"
as 'error_no sqlstate';
declare exit handler for 1016 select "hy000 (er_cant_open_file) can't open fil"
as 'error_no sqlstate';
declare exit handler for 1017 select "hy000 (er_file_not_found) can't find fil"
as 'error_no sqlstate';
declare exit handler for 1018 select "hy000 (er_cant_read_dir) can't read dir of
'%s' (errn" as 'error_no sqlstate';
declare exit handler for 1019 select "hy000 (er_cant_set_wd) can't change dir
to '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1020 select "hy000 (er_checkread) record has changed
since last read in table '%s'" as 'error_no sqlstate';
declare exit handler for 1021 select "hy000 (er_disk_full) disk full (%s);
waiting for someone to free some space..." as 'error_no sqlstate';
declare exit handler for 1022 select "23000 (er_dup_key) can't write; duplicate
key in table '%s'" as 'error_no sqlstate';
declare exit handler for 1027 select "hy000 (er_file_used) '%s' is locked against
change" as 'error_no sqlstate';
declare exit handler for 1028 select "hy000 (er_filsort_abort) sort aborted" as
'error_no sqlstate';
declare exit handler for 1029 select "hy000 (er_form_not_found) view '%s'
doesn't exist for '%s'" as 'error_no sqlstate';
declare exit handler for 1030 select "hy000 (er_get_errno) got error %d from
storage engine" as 'error_no sqlstate';
declare exit handler for 1031 select "hy000 (er_illegal_ha) table storage engine
for '%s' doesn't have this option" as 'error_no sqlstate';
declare exit handler for 1032 select "hy000 (er_key_not_found) can't find
record in '%s'" as 'error_no sqlstate';
declare exit handler for 1033 select "hy000 (er_not_form_file) incorrect
information in fil" as 'error_no sqlstate';
declare exit handler for 1034 select "hy000 (er_not_keyfile) incorrect key file
for table '%s'; try to repair it" as 'error_no sqlstate';
declare exit handler for 1035 select "hy000 (er_old_keyfile) old key file for
table '%s'; repair it!" as 'error_no sqlstate';
declare exit handler for 1036 select "hy000 (er_open_as_readonly) table '%s' is
read only" as 'error_no sqlstate';
declare exit handler for 1037 select "hy001 (er_outofmemory) out of memory;
restart server and try again (needed %d bytes)" as 'error_no sqlstate';
declare exit handler for 1038 select "hy001 (er_out_of_sortmemory) out of sort
memory; increase server sort buffer size" as 'error_no sqlstate';
declare exit handler for 1039 select "hy000 (er_unexpected_eof) unexpected
eof found when reading file '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1040 select "08004 (er_con_count_error) too many
connections" as 'error_no sqlstate';
declare exit handler for 1041 select "hy000 (er_out_of_resources) 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" as 'error_no sqlstate';
declare exit handler for 1042 select "08s01 (er_bad_host_error) can't get
hostname for your address" as 'error_no sqlstate';
declare exit handler for 1043 select "08s01 (er_handshake_error) bad
handshake" as 'error_no sqlstate';
declare exit handler for 1044 select "42000 (er_dbaccess_denied_error) access
denied for user '%s'@'%s' to database '%s'" as 'error_no sqlstate';
declare exit handler for 1045 select "28000 (er_access_denied_error) access
denied for user '%s'@'%s' (using passwor" as 'error_no sqlstate';
declare exit handler for 1046 select "3d000 (er_no_db_error) no database
selected" as 'error_no sqlstate';
declare exit handler for 1047 select "08s01 (er_unknown_com_error) unknown
command" as 'error_no sqlstate';
declare exit handler for 1048 select "23000 (er_bad_null_error) column '%s'
cannot be null" as 'error_no sqlstate';
declare exit handler for 1049 select "42000 (er_bad_db_error) unknown
database '%s'" as 'error_no sqlstate';
declare exit handler for 1050 select "42s01 (er_table_exists_error) table '%s'
already exists" as 'error_no sqlstate';
declare exit handler for 1051 select "42s02 (er_bad_table_error) unknown table
'%s'" as 'error_no sqlstate';
declare exit handler for 1052 select "23000 (er_non_uniq_error) column '%s' in
%s is ambiguous" as 'error_no sqlstate';
declare exit handler for 1053 select "08s01 (er_server_shutdown) server
shutdown in progress" as 'error_no sqlstate';
/*declare exit handler for 1054 select "42s22 (er_bad_field_error) unknown
column '%s' in '%s'" as 'error_no sqlstate';*/
declare continue handler for 1054 select "42s22 (er_bad_field_error) unknown
column '%s' in '%s'" as 'error_no sqlstate';
declare exit handler for 1055 select "42000 (er_wrong_field_with_group) '%s'
isn't in group by" as 'error_no sqlstate';
declare exit handler for 1056 select "42000 (er_wrong_group_field) can't group
on '%s'" as 'error_no sqlstate';
declare exit handler for 1057 select "42000 (er_wrong_sum_select) statement
has sum functions and columns in same statement" as 'error_no sqlstate';
declare exit handler for 1058 select "21s01 (er_wrong_value_count) column
count doesn't match value count" as 'error_no sqlstate';
declare exit handler for 1059 select "42000 (er_too_long_ident) identifier name
'%s' is too long" as 'error_no sqlstate';
declare exit handler for 1060 select "42s21 (er_dup_fieldname) duplicate
column name '%s'" as 'error_no sqlstate';
declare exit handler for 1061 select "42000 (er_dup_keyname) duplicate key
name '%s'" as 'error_no sqlstate';
declare exit handler for 1062 select "23000 (er_dup_entry) duplicate entry '%s'
for key '%s'" as 'error_no sqlstate';
declare exit handler for 1063 select "42000 (er_wrong_field_spec) incorrect
column specifier for column '%s'" as 'error_no sqlstate';
declare exit handler for 1064 select "42000 (er_parse_error) %s near '%s' at
line %d" as 'error_no sqlstate';
declare exit handler for 1065 select "42000 (er_empty_query) query was
empty" as 'error_no sqlstate';
declare exit handler for 1066 select "42000 (er_nonuniq_table) not unique
table/alia" as 'error_no sqlstate';
declare exit handler for 1067 select "42000 (er_invalid_default) invalid default
value for '%s'" as 'error_no sqlstate';
declare exit handler for 1068 select "42000 (er_multiple_pri_key) multiple
primary key defined" as 'error_no sqlstate';
declare exit handler for 1069 select "42000 (er_too_many_keys) too many keys
specified; max %d keys allowed" as 'error_no sqlstate';
declare exit handler for 1070 select "42000 (er_too_many_key_parts) too many
key parts specified; max %d parts allowed" as 'error_no sqlstate';
declare exit handler for 1071 select "42000 (er_too_long_key) specified key
was too long; max key length is %d bytes" as 'error_no sqlstate';
declare exit handler for 1072 select "42000 (er_key_column_does_not_exits)
key column '%s' doesn't exist in table" as 'error_no sqlstate';
declare exit handler for 1073 select "42000 (er_blob_used_as_key) blob
column '%s' can't be used in key specification with the used table type" as
'error_no sqlstate';
declare exit handler for 1074 select "42000 (er_too_big_fieldlength) column
length too big for column '%s' (max = %d); use blob or text instead" as
'error_no sqlstate';
declare exit handler for 1075 select "42000 (er_wrong_auto_key) incorrect
table definition; there can be only one auto column and it must be defined as a
key" as 'error_no sqlstate';
declare exit handler for 1076 select "hy000 (er_ready) %" as 'error_no sqlstate';

declare exit handler for 1077 select "hy000 (er_normal_shutdown) %" as


'error_no sqlstate';
declare exit handler for 1078 select "hy000 (er_got_signal) %" as 'error_no
sqlstate';
declare exit handler for 1079 select "hy000 (er_shutdown_complete) %" as
'error_no sqlstate';
declare exit handler for 1080 select "08s01 (er_forcing_close) %" as 'error_no
sqlstate';
declare exit handler for 1081 select "08s01 (er_ipsock_error) can't create ip
socket" as 'error_no sqlstate';
declare exit handler for 1082 select "42s12 (er_no_such_index) table '%s' has
no index like the one used in create index; recreate the table" as 'error_no
sqlstate';
declare exit handler for 1083 select "42000 (er_wrong_field_terminators) field
separator argument is not what is expected; check the manual" as 'error_no
sqlstate';
declare exit handler for 1084 select "42000 (er_blobs_and_no_terminated) you
can't use fixed rowlength with blobs; please use 'fields terminated by'" as
'error_no sqlstate';
declare exit handler for 1085 select "hy000 (er_textfile_not_readable) the file
'%s' must be in the database directory or be readable by all" as 'error_no
sqlstate';
declare exit handler for 1086 select "hy000 (er_file_exists_error) file '%s'
already exists" as 'error_no sqlstate';
declare exit handler for 1087 select "hy000 (er_load_info) record" as 'error_no
sqlstate';
declare exit handler for 1088 select "hy000 (er_alter_info) record" as 'error_no
sqlstate';
declare exit handler for 1089 select "hy000 (er_wrong_sub_key) 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" as 'error_no
sqlstate';
declare exit handler for 1090 select "42000 (er_cant_remove_all_fields) you
can't delete all columns with alter table; use drop table instead" as 'error_no
sqlstate';
declare exit handler for 1091 select "42000 (er_cant_drop_field_or_key) can't
drop '%s'; check that column/key exists" as 'error_no sqlstate';
declare exit handler for 1092 select "hy000 (er_insert_info) record" as
'error_no sqlstate';
declare exit handler for 1093 select "hy000 (er_update_table_used) you can't
specify target table '%s' for update in from clause" as 'error_no sqlstate';
declare exit handler for 1094 select "hy000 (er_no_such_thread) unknown
thread i" as 'error_no sqlstate';
declare exit handler for 1095 select "hy000 (er_kill_denied_error) you are not
owner of thread %lu" as 'error_no sqlstate';
declare exit handler for 1096 select "hy000 (er_no_tables_used) no tables
used" as 'error_no sqlstate';
declare exit handler for 1097 select "hy000 (er_too_big_set) too many strings
for column %s and set" as 'error_no sqlstate';
declare exit handler for 1098 select "hy000 (er_no_unique_logfile) can't
generate a unique log-filename %s.(1-999)" as 'error_no sqlstate';
declare exit handler for 1099 select "hy000 (er_table_not_locked_for_write)
table '%s' was locked with a read lock and can't be updated" as 'error_no
sqlstate';
declare exit handler for 1100 select "hy000 (er_table_not_locked) table '%s'
was not locked with lock tables" as 'error_no sqlstate';
declare exit handler for 1101 select "42000 (er_blob_cant_have_default)
blob/text column '%s' can't have a default value" as 'error_no sqlstate';
declare exit handler for 1102 select "42000 (er_wrong_db_name) incorrect
database name '%s'" as 'error_no sqlstate';
declare exit handler for 1103 select "42000 (er_wrong_table_name) incorrect
table name '%s'" as 'error_no sqlstate';
declare exit handler for 1104 select "42000 (er_too_big_select) 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" as 'error_no
sqlstate';
declare exit handler for 1105 select "hy000 (er_unknown_error) unknown
error" as 'error_no sqlstate';
declare exit handler for 1106 select "42000 (er_unknown_procedure) unknown
procedure '%s'" as 'error_no sqlstate';
declare exit handler for 1107 select "42000
(er_wrong_paramcount_to_procedure) incorrect parameter count to procedure
'%s'" as 'error_no sqlstate';
declare exit handler for 1108 select "hy000
(er_wrong_parameters_to_procedure) incorrect parameters to procedure '%s'"
as 'error_no sqlstate';
declare exit handler for 1109 select "42s02 (er_unknown_table) unknown table
'%s' in %s" as 'error_no sqlstate';
declare exit handler for 1110 select "42000 (er_field_specified_twice) column
'%s' specified twice" as 'error_no sqlstate';
declare exit handler for 1111 select "hy000 (er_invalid_group_func_use)
invalid use of group function" as 'error_no sqlstate';
declare exit handler for 1112 select "42000 (er_unsupported_extension) table
'%s' uses an extension that doesn't exist in this mysql version" as 'error_no
sqlstate';
declare exit handler for 1113 select "42000 (er_table_must_have_columns) a
table must have at least 1 column" as 'error_no sqlstate';
declare exit handler for 1114 select "hy000 (er_record_file_full) the table '%s'
is full" as 'error_no sqlstate';
declare exit handler for 1115 select "42000 (er_unknown_character_set)
unknown character se" as 'error_no sqlstate';
declare exit handler for 1116 select "hy000 (er_too_many_tables) too many
tables; mysql can only use %d tables in a join" as 'error_no sqlstate';
declare exit handler for 1117 select "hy000 (er_too_many_fields) too many
columns" as 'error_no sqlstate';
declare exit handler for 1118 select "42000 (er_too_big_rowsize) 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" as 'error_no sqlstate';
declare exit handler for 1119 select "hy000 (er_stack_overrun) thread stack
overru" as 'error_no sqlstate';
declare exit handler for 1120 select "42000 (er_wrong_outer_join) cross
dependency found in outer join; examine your on conditions" as 'error_no
sqlstate';
declare exit handler for 1121 select "42000 (er_null_column_in_index) column
'%s' is used with unique or index but is not defined as not null" as 'error_no
sqlstate';
declare exit handler for 1122 select "hy000 (er_cant_find_udf) can't load
function '%s'" as 'error_no sqlstate';
declare exit handler for 1123 select "hy000 (er_cant_initialize_udf) can't
initialize function '%s'; %s" as 'error_no sqlstate';
declare exit handler for 1124 select "hy000 (er_udf_no_paths) no paths
allowed for shared library" as 'error_no sqlstate';
declare exit handler for 1125 select "hy000 (er_udf_exists) function '%s'
already exists" as 'error_no sqlstate';
declare exit handler for 1126 select "hy000 (er_cant_open_library) can't open
shared library '%s' (errn" as 'error_no sqlstate';
declare exit handler for 1127 select "hy000 (er_cant_find_dl_entry) can't find
symbol '%s' in library" as 'error_no sqlstate';
declare exit handler for 1128 select "hy000 (er_function_not_defined) function
'%s' is not defined" as 'error_no sqlstate';
declare exit handler for 1129 select "hy000 (er_host_is_blocked) host '%s' is
blocked because of many connection errors; unblock with 'mysqladmin flush-
hosts'" as 'error_no sqlstate';
declare exit handler for 1130 select "hy000 (er_host_not_privileged) host '%s'
is not allowed to connect to this mysql server" as 'error_no sqlstate';
declare exit handler for 1131 select "42000 (er_password_anonymous_user)
you are using mysql as an anonymous user and anonymous users are not
allowed to change passwords" as 'error_no sqlstate';
declare exit handler for 1132 select "42000 (er_password_not_allowed) you
must have privileges to update tables in the mysql database to be able to
change passwords for others" as 'error_no sqlstate';
declare exit handler for 1133 select "42000 (er_password_no_match) can't find
any matching row in the user table" as 'error_no sqlstate';
declare exit handler for 1134 select "hy000 (er_update_info) rows matche" as
'error_no sqlstate';
declare exit handler for 1135 select "hy000 (er_cant_create_thread) can't create
a new thread (errno %d); if you are not out of available memory, you can
consult the manual for a possible os-dependent bug" as 'error_no sqlstate';
declare exit handler for 1136 select "21s01 (er_wrong_value_count_on_row)
column count doesn't match value count at row %ld" as 'error_no sqlstate';
declare exit handler for 1137 select "hy000 (er_cant_reopen_table) can't reopen
tabl" as 'error_no sqlstate';
declare exit handler for 1138 select "22004 (er_invalid_use_of_null) invalid
use of null value" as 'error_no sqlstate';
declare exit handler for 1139 select "42000 (er_regexp_error) got error '%s'
from regexp" as 'error_no sqlstate';
declare exit handler for 1140 select "42000
(er_mix_of_group_func_and_fields) mixing of group columns
(min(),max(),count(),...) with no group columns is illegal if there is no group
by clause" as 'error_no sqlstate';
declare exit handler for 1141 select "42000 (er_nonexisting_grant) there is no
such grant defined for user '%s' on host '%s'" as 'error_no sqlstate';
declare exit handler for 1142 select "42000 (er_tableaccess_denied_error) %s
command denied to user '%s'@'%s' for table '%s'" as 'error_no sqlstate';
declare exit handler for 1143 select "42000 (er_columnaccess_denied_error)
%s command denied to user '%s'@'%s' for column '%s' in table '%s'" as
'error_no sqlstate';
declare exit handler for 1144 select "42000 (er_illegal_grant_for_table) illegal
grant/revoke command; please consult the manual to see which privileges can
be used" as 'error_no sqlstate';
declare exit handler for 1145 select "42000 (er_grant_wrong_host_or_user) the
host or user argument to grant is too long" as 'error_no sqlstate';
declare exit handler for 1146 select "42s02 (er_no_such_table) table '%s.%s'
doesn't exist" as 'error_no sqlstate';
declare exit handler for 1147 select "42000 (er_nonexisting_table_grant) there
is no such grant defined for user '%s' on host '%s' on table '%s'" as 'error_no
sqlstate';
declare exit handler for 1148 select "42000 (er_not_allowed_command) the
used command is not allowed with this mysql version" as 'error_no sqlstate';
declare exit handler for 1149 select "42000 (er_syntax_error) you have an error
in your sql syntax; check the manual that corresponds to your mysql server
version for the right syntax to use" as 'error_no sqlstate';
declare exit handler for 1150 select "hy000 (er_delayed_cant_change_lock)
delayed insert thread couldn't get requested lock for table %s" as 'error_no
sqlstate';
declare exit handler for 1151 select "hy000 (er_too_many_delayed_threads)
too many delayed threads in use" as 'error_no sqlstate';
declare exit handler for 1152 select "08s01 (er_aborting_connection) aborted
connection %ld to d" as 'error_no sqlstate';
declare exit handler for 1153 select "08s01 (er_net_packet_too_large) got a
packet bigger than 'max_allowed_packet' bytes" as 'error_no sqlstate';
declare exit handler for 1154 select "08s01 (er_net_read_error_from_pipe) got
a read error from the connection pipe" as 'error_no sqlstate';
declare exit handler for 1155 select "08s01 (er_net_fcntl_error) got an error
from fcntl()" as 'error_no sqlstate';
declare exit handler for 1156 select "08s01 (er_net_packets_out_of_order) got
packets out of order" as 'error_no sqlstate';
declare exit handler for 1157 select "08s01 (er_net_uncompress_error) couldn't
uncompress communication packet" as 'error_no sqlstate';
declare exit handler for 1158 select "08s01 (er_net_read_error) got an error
reading communication packets" as 'error_no sqlstate';
declare exit handler for 1159 select "08s01 (er_net_read_interrupted) got
timeout reading communication packets" as 'error_no sqlstate';
declare exit handler for 1160 select "08s01 (er_net_error_on_write) got an
error writing communication packets" as 'error_no sqlstate';
declare exit handler for 1161 select "08s01 (er_net_write_interrupted) got
timeout writing communication packets" as 'error_no sqlstate';
declare exit handler for 1162 select "42000 (er_too_long_string) result string is
longer than 'max_allowed_packet' bytes" as 'error_no sqlstate';
declare exit handler for 1163 select "42000 (er_table_cant_handle_blob) the
used table type doesn't support blob/text columns" as 'error_no sqlstate';
declare exit handler for 1164 select "42000
(er_table_cant_handle_auto_increment) the used table type doesn't support
auto_increment columns" as 'error_no sqlstate';
declare exit handler for 1165 select "hy000 (er_delayed_insert_table_locked)
insert delayed can't be used with table '%s' because it is locked with lock
tables" as 'error_no sqlstate';
declare exit handler for 1166 select "42000 (er_wrong_column_name)
incorrect column name '%s'" as 'error_no sqlstate';
declare exit handler for 1167 select "42000 (er_wrong_key_column) the used
storage engine can't index column '%s'" as 'error_no sqlstate';
declare exit handler for 1168 select "hy000 (er_wrong_mrg_table) all tables in
the merge table are not identically defined" as 'error_no sqlstate';
declare exit handler for 1169 select "23000 (er_dup_unique) can't write,
because of unique constraint, to table '%s'" as 'error_no sqlstate';
declare exit handler for 1170 select "42000 (er_blob_key_without_length)
blob/text column '%s' used in key specification without a key length" as
'error_no sqlstate';
declare exit handler for 1171 select "42000 (er_primary_cant_have_null) all
parts of a primary key must be not null; if you need null in a key, use unique
instead" as 'error_no sqlstate';
declare exit handler for 1172 select "42000 (er_too_many_rows) result
consisted of more than one row" as 'error_no sqlstate';
declare exit handler for 1173 select "42000 (er_requires_primary_key) this
table type requires a primary key" as 'error_no sqlstate';
declare exit handler for 1174 select "hy000 (er_no_raid_compiled) this version
of mysql is not compiled with raid support" as 'error_no sqlstate';
declare exit handler for 1175 select "hy000
(er_update_without_key_in_safe_mode) you are using safe update mode and
you tried to update a table without a where that uses a key column" as 'error_no
sqlstate';
declare exit handler for 1176 select "hy000 (er_key_does_not_exits) key '%s'
doesn't exist in table '%s'" as 'error_no sqlstate';
declare exit handler for 1177 select "42000 (er_check_no_such_table) can't
open table" as 'error_no sqlstate';
declare exit handler for 1178 select "42000 (er_check_not_implemented) the
storage engine for the table doesn't support %s" as 'error_no sqlstate';
declare exit handler for 1179 select "25000
(er_cant_do_this_during_an_transaction) you are not allowed to execute this
command in a transaction" as 'error_no sqlstate';
declare exit handler for 1180 select "hy000 (er_error_during_commit) got error
%d during commit" as 'error_no sqlstate';
declare exit handler for 1181 select "hy000 (er_error_during_rollback) got
error %d during rollback" as 'error_no sqlstate';
declare exit handler for 1182 select "hy000 (er_error_during_flush_logs) got
error %d during flush_logs" as 'error_no sqlstate';
declare exit handler for 1183 select "hy000 (er_error_during_checkpoint) got
error %d during checkpoint" as 'error_no sqlstate';
declare exit handler for 1184 select "08s01 (er_new_aborting_connection)
aborted connection %ld to d" as 'error_no sqlstate';
declare exit handler for 1185 select "hy000 (er_dump_not_implemented) the
storage engine for the table does not support binary table dump" as 'error_no
sqlstate';
declare exit handler for 1186 select "hy000 (er_flush_master_binlog_closed)
binlog closed, cannot reset master" as 'error_no sqlstate';
declare exit handler for 1187 select "hy000 (er_index_rebuild) failed rebuilding
the index of dumped table '%s'" as 'error_no sqlstate';
declare exit handler for 1189 select "08s01 (er_master_net_read) net error
reading from master" as 'error_no sqlstate';
declare exit handler for 1190 select "08s01 (er_master_net_write) net error
writing to master" as 'error_no sqlstate';
declare exit handler for 1191 select "hy000 (er_ft_matching_key_not_found)
can't find fulltext index matching the column list" as 'error_no sqlstate';
declare exit handler for 1192 select "hy000 (er_lock_or_active_transaction)
can't execute the given command because you have active locked tables or an
active transaction" as 'error_no sqlstate';
declare exit handler for 1193 select "hy000 (er_unknown_system_variable)
unknown system variable '%s'" as 'error_no sqlstate';
declare exit handler for 1194 select "hy000 (er_crashed_on_usage) table '%s' is
marked as crashed and should be repaired" as 'error_no sqlstate';
declare exit handler for 1195 select "hy000 (er_crashed_on_repair) table '%s' is
marked as crashed and last (automatic?) repair failed" as 'error_no sqlstate';
declare exit handler for 1196 select "hy000
(er_warning_not_complete_rollback) some non-transactional changed tables
couldn't be rolled back" as 'error_no sqlstate';
declare exit handler for 1197 select "hy000 (er_trans_cache_full) multi-
statement transaction required more than 'max_binlog_cache_size' bytes of
storage; increase this mysqld variable and try again" as 'error_no sqlstate';
declare exit handler for 1198 select "hy000 (er_slave_must_stop) this operation
cannot be performed with a running slave; run stop slave first" as 'error_no
sqlstate';
declare exit handler for 1199 select "hy000 (er_slave_not_running) this
operation requires a running slave; configure slave and do start slave" as
'error_no sqlstate';
declare exit handler for 1200 select "hy000 (er_bad_slave) the server is not
configured as slave; fix in config file or with change master to" as 'error_no
sqlstate';
declare exit handler for 1201 select "hy000 (er_master_info) could not
initialize master info structure; more error messages can be found in the mysql
error log" as 'error_no sqlstate';
declare exit handler for 1202 select "hy000 (er_slave_thread) could not create
slave thread; check system resources" as 'error_no sqlstate';
declare exit handler for 1203 select "42000 (er_too_many_user_connections)
user %s already has more than 'max_user_connections' active connections" as
'error_no sqlstate';
declare exit handler for 1204 select "hy000 (er_set_constants_only) you may
only use constant expressions with set" as 'error_no sqlstate';
declare exit handler for 1205 select "hy000 (er_lock_wait_timeout) lock wait
timeout exceeded; try restarting transaction" as 'error_no sqlstate';
declare exit handler for 1206 select "hy000 (er_lock_table_full) the total
number of locks exceeds the lock table size" as 'error_no sqlstate';
declare exit handler for 1207 select "25000 (er_read_only_transaction) update
locks cannot be acquired during a read uncommitted transaction" as 'error_no
sqlstate';
declare exit handler for 1208 select "hy000 (er_drop_db_with_read_lock) drop
database not allowed while thread is holding global read lock" as 'error_no
sqlstate';
declare exit handler for 1209 select "hy000 (er_create_db_with_read_lock)
create database not allowed while thread is holding global read lock" as
'error_no sqlstate';
declare exit handler for 1210 select "hy000 (er_wrong_arguments) incorrect
arguments to %s" as 'error_no sqlstate';
declare exit handler for 1211 select "42000 (er_no_permission_to_create_user)
'%s'@'%s' is not allowed to create new users" as 'error_no sqlstate';
declare exit handler for 1212 select "hy000 (er_union_tables_in_different_dir)
incorrect table definition; all merge tables must be in the same database" as
'error_no sqlstate';
declare exit handler for 1213 select "40001 (er_lock_deadlock) deadlock found
when trying to get lock; try restarting transaction" as 'error_no sqlstate';
declare exit handler for 1214 select "hy000 (er_table_cant_handle_ft) the used
table type doesn't support fulltext indexes" as 'error_no sqlstate';
declare exit handler for 1215 select "hy000 (er_cannot_add_foreign) cannot
add foreign key constraint" as 'error_no sqlstate';
declare exit handler for 1216 select "23000 (er_no_referenced_row) cannot add
or update a child ro" as 'error_no sqlstate';
declare exit handler for 1217 select "23000 (er_row_is_referenced) cannot
delete or update a parent ro" as 'error_no sqlstate';
declare exit handler for 1221 select "hy000 (er_wrong_usage) incorrect usage
of %s and %s" as 'error_no sqlstate';
declare exit handler for 1222 select "21000
(er_wrong_number_of_columns_in_select) the used select statements have a
different number of columns" as 'error_no sqlstate';
declare exit handler for 1223 select "hy000 (er_cant_update_with_readlock)
can't execute the query because you have a conflicting read lock" as 'error_no
sqlstate';
declare exit handler for 1224 select "hy000 (er_mixing_not_allowed) mixing of
transactional and non-transactional tables is disabled" as 'error_no sqlstate';
declare exit handler for 1225 select "hy000 (er_dup_argument) option '%s'
used twice in statement" as 'error_no sqlstate';
declare exit handler for 1226 select "42000 (er_user_limit_reached) user '%s'
has exceeded the '%s' resource (current valu" as 'error_no sqlstate';
declare exit handler for 1227 select "42000 (er_specific_access_denied_error)
access denied; you need the %s privilege for this operation" as 'error_no
sqlstate';
declare exit handler for 1228 select "hy000 (er_local_variable) variable '%s' is
a session variable and can't be used with set global" as 'error_no sqlstate';
declare exit handler for 1229 select "hy000 (er_global_variable) variable '%s' is
a global variable and should be set with set global" as 'error_no sqlstate';
declare exit handler for 1230 select "42000 (er_no_default) variable '%s'
doesn't have a default value" as 'error_no sqlstate';
declare exit handler for 1231 select "42000 (er_wrong_value_for_var) variable
'%s' can't be set to the value of '%s'" as 'error_no sqlstate';
declare exit handler for 1232 select "42000 (er_wrong_type_for_var) incorrect
argument type to variable '%s'" as 'error_no sqlstate';
declare exit handler for 1233 select "hy000 (er_var_cant_be_read) variable '%s'
can only be set, not read" as 'error_no sqlstate';
declare exit handler for 1234 select "42000 (er_cant_use_option_here)
incorrect usage/placement of '%s'" as 'error_no sqlstate';
declare exit handler for 1235 select "42000 (er_not_supported_yet) this version
of mysql doesn't yet support '%s'" as 'error_no sqlstate';
declare exit handler for 1236 select "hy000
(er_master_fatal_error_reading_binlog) got fatal error %" as 'error_no sqlstate';

declare exit handler for 1237 select "hy000 (er_slave_ignored_table) slave sql
thread ignored the query because of replicate-*-table rules" as 'error_no
sqlstate';
declare exit handler for 1238 select "hy000 (er_incorrect_global_local_var)
variable '%s' is a %s variable" as 'error_no sqlstate';
declare exit handler for 1239 select "42000 (er_wrong_fk_def) incorrect
foreign key definition for '%s" as 'error_no sqlstate';
declare exit handler for 1240 select "hy000
(er_key_ref_do_not_match_table_ref) key reference and table reference don't
match" as 'error_no sqlstate';
declare exit handler for 1241 select "21000 (er_operand_columns) operand
should contain %d column(s)" as 'error_no sqlstate';
declare exit handler for 1242 select "21000 (er_subquery_no_1_row) subquery
returns more than 1 row" as 'error_no sqlstate';
declare exit handler for 1243 select "hy000 (er_unknown_stmt_handler)
unknown prepared statement handler (%.*s) given to %s" as 'error_no sqlstate';

declare exit handler for 1244 select "hy000 (er_corrupt_help_db) help database
is corrupt or does not exist" as 'error_no sqlstate';
declare exit handler for 1245 select "hy000 (er_cyclic_reference) cyclic
reference on subqueries" as 'error_no sqlstate';
declare exit handler for 1246 select "hy000 (er_auto_convert) converting
column '%s' from %s to %s" as 'error_no sqlstate';
declare exit handler for 1247 select "42s22 (er_illegal_reference) reference '%s'
not supported (%s)" as 'error_no sqlstate';

You might also like