Skip to main content

Error message overview

This chapter describes the error messages in seekdb.

Error message format

seekdb is highly compatible with MySQL, not only in terms of common MySQL features and protocols, but also in its native error messages. Therefore, the error message format in seekdb is consistent with that of MySQL.

The error message format is as follows:

ERROR <err_num> (<sql_stat>) : err_msg

The parameters are described as follows:

  • err_num indicates the error code.

  • sql_stat indicates the SQL state.

  • err_msg indicates the error message.

Variables in error messages

To help you identify and resolve errors, seekdb embeds parameters in the error messages. In this chapter, these parameters are displayed with a percent sign (%).

Here is an example:

ERROR 5235 (HY000) : The table \'%.*s.%.*s\' is read only so it cannot execute this statement

The message may actually be displayed as follows:

ERROR 5235 (HY000) : The table 'testdb' is read only so it cannot execute this statement

Error message list

The following table describes the system error code ranges and their corresponding error messages.

Error code rangeDescription
0001 ~ 3999Error messages compatible with MySQL.
For more information about MySQL server error codes, see Server Error Message Reference.
For more information about MySQL client error codes, see Client Error Message Reference.
4000 ~ 4499General error codes.
5000 ~ 5999Error codes for SQL, WITH clauses, and factoring.
6000 ~ 6999Error codes for transactions, MVCC, and clogs.
8000 ~ 8999Fatal errors. When a client receives an error in this range, it must close the SQL connection.
9500 ~ 9999Error codes for procedural languages (PL).
22998, 30926, 38104, 38105Error codes for BLOB/CLOB.