Home >Backend Development >PHP Tutorial >Basic introduction - List of MYSQL error codes_PHP tutorial
My sql made an error. In the past, I often relied on guessing. With this table, I can find it out immediately. It is very convenient. The special information can be shared with the public.
1005: Failed to create table
1006: Failed to create database
1007: Database already exists, failed to create database
1008: Database does not exist, delete Database failed
1009: The database file cannot be deleted, resulting in database deletion failure
1010: The data directory cannot be deleted, resulting in database deletion failure
1011: Database file deletion failed
1012: Unable to read the record in the system table
1020: The record has been modified by other users
1021: Insufficient hard disk remaining space, please increase the available hard disk space
1022: Duplicate keywords, failed to change record
1023: Error occurred when closing
1024: Error reading file
1025: Error occurred when changing 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 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: The current user does not have permission to access the database
1045: Unable to connect to the database, username or password is wrong
1048: Field cannot be empty
1049: Database does not exist
1050: Data table already exists
1051: The data table does not exist
1054: The field does not exist
1065: Invalid SQL statement, the SQL statement is empty