Troubleshooting MYSQL or MariaDB Errors from Error 1161 to 1170


MariaDB ERROR Code 1161
MySQL SQL State 08S01
Got timeout writing communication packets
MariaDB ERROR Code 1162
MySQL SQL State 42000
Result string is longer than ‘max_allowed_packet’ bytes
MariaDB ERROR Code 1163
MySQL SQL State 42000
The used table type doesn’t support BLOB/TEXT columns

MariaDB ERROR Code 1164
MySQL SQL State 42000
The used table type doesn’t support AUTO_INCREMENT columns
MariaDB ERROR Code 1165
MySQL SQL State HY000
INSERT DELAYED can’t be used with table ‘%s’ because it is locked with LOCK TABLESMySQL SQL State
MariaDB ERROR Code 1166
MySQL SQL State 42000
Incorrect column name ‘%s’

MariaDB ERROR Code 1167
MySQL SQL State 42000
The used storage engine can’t index column ‘%s’
MariaDB ERROR Code 1168
MySQL SQL State HY000
Unable to open underlying table which is differently defined or of non-MyISAM type or doesn’t exist
MariaDB ERROR Code 1169
MySQL SQL State 23000
Can’t write, because of unique constraint, to table ‘%s’
MariaDB ERROR Code 1170
MySQL SQL State 42000
BLOB/TEXT column ‘%s’ used in key specification without a key length

Above are the list of shared MySQL and MariaDB Error Codes and their Description including SQL state and exact error code from Error 1161 to 1170 which performing certain operations against MySQL or MariaDB.

What are MYSQL/MariaDB Errors?

MySQL and MariaDB programs have access to several types of common error information when the server returns an error.

The MYSQL/MariaDB message displayed contains three types of information:
A numeric error code. This number is MySQL-specific and is not portable to other database systems.
A five-character SQLSTATE value. The values are specified by ANSI SQL and ODBC and are more standardized. Not all MySQL error numbers are mapped to SQLSTATE error codes.
A message string that provides a textual description of the error.
When an error occurs, you can access the MySQL error code, the SQLSTATE value, and the message string using C API functions:
MySQL error code: Call mysql_errno()
SQLSTATE value: Call mysql_sqlstate()
Error message: Call mysql_error()

Hope this was helpful.

SQLServerF1 Team
Information about MYSQL and MariaDB Error Codes and Error Messages or Warnings on Windows, Linux Operating Systems.


Leave a Reply

Your email address will not be published. Required fields are marked *