MYSQL error codes and error information are compared with the error code table of mysql and compiled according to the mysql header file mysql/include/mysqld_error.h. Please correct me if there are any errors. 1005: Failed to create the table 1006: Failed to create the database 1007: The database already exists, failed to create the database 1008: The database does not exist, failed to delete the database 1009: Failure to delete the database caused by failure to delete the database file 1010: Failure to delete the database due to failure to delete the data directory 1011: Failed to delete the database file 1012: Unable to read the record in the system table 1020: The record has been modified by other users 1021: Insufficient remaining space on the hard disk, please increase the available space on the hard disk 1022: Duplicate keywords, failed to change the record 1023: An error occurred during shutdown 1024: Reading file error 1025: An error occurred when changing the name 1026: Writing file error 1032: The record does not exist 1036: The data table is read-only and cannot be modified 1037: Insufficient system memory, please restart the database or restart the server 1038: Insufficient memory for sorting, please increase the sorting buffer 1040: The maximum number of connections to the database has been reached, please increase the number of available connections to the database 1041: Insufficient system memory 1042: Invalid host name 1043: Invalid connection 1044: No current user Permission to access the database 1045: Cannot connect to the database, user name or password is wrong 1048: Field cannot be empty 1049: Database does not exist 1050: Data table already exists 1051: Data table does not exist 1054: Field does not exist 1065: Invalid SQL statement, The SQL statement is empty 1081: The Socket connection cannot be established 1114: The data table is full and cannot hold any records 1116: There are too many open data tables 1129: An exception occurred in the database, please restart the database 1130: Failed to connect to the database, no permission to connect to the database 1133 : The database user does not exist 1141: The current user does not have permission to access the database 1142: The current user does not have permission to access the data table 1143: The current user does not have permission to access the fields in the data table 1146: The data table does not exist 1147: User access to the data table is not defined Permission 1149: SQL statement syntax error 1158: Network error, a read error occurred, please check the network connection status 1159: Network error, read timeout, please check the network connection status 1160: Network error, a write error occurred, please check the network connection status 1161: Network error, write timeout, please check the network connection status 1062: Duplicate field values, failed to enter the database 1169: Duplicated field values, failed to update the record 1177: Failed to open the data table 1180: Failed to submit the transaction 1181: Failed to roll back the transaction 1203: Current user The number of connections established with the database has reached the maximum number of connections to the database. Please increase the number of available database connections or restart the database. 1205: Lock timeout 1211: The current user does not have permission to create users 1216: Foreign key constraint check failed, update subtable records Failure 1217: Foreign key constraint check failed, deleting or modifying the main table record failed 1226: The resources used by the current user have exceeded the allowed resources, please restart the database or restart the server 1227: Insufficient permissions, you do not have the permission to perform this operation 1235: MySQL The version is too low and does not have this function