C. Errors, Error Codes, And Common Problems; C.1. Sources Of Error Information; C.2. Types Of Error Values - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

Appendix C. Errors, Error Codes, and Common Problems
Table of Contents

C.1. Sources of Error Information ............................................................................................. 2909

C.2. Types of Error Values ...................................................................................................... 2909

C.3. Server Error Codes and Messages ................................................................................... 2910
C.4. Client Error Codes and Messages .................................................................................... 2941
C.5. Problems and Common Errors ......................................................................................... 2945
C.5.1. How to Determine What Is Causing a Problem ....................................................... 2945
C.5.2. Common Errors When Using MySQL Programs ...................................................... 2946
C.5.3. Installation-Related Issues ..................................................................................... 2959
C.5.4. Administration-Related Issues ................................................................................ 2959
C.5.5. Query-Related Issues ............................................................................................ 2966
C.5.6. Optimizer-Related Issues ....................................................................................... 2973
C.5.7. Table Definition-Related Issues .............................................................................. 2974
C.5.8. Known Issues in MySQL ....................................................................................... 2975
This appendix lists common problems and errors that may occur and potential resolutions, in addition
to listing the errors that may appear when you call MySQL from any host language. The first section
covers problems and resolutions. Detailed information on errors is provided: One list displays server
error messages. Another list displays client program messages.
C.1. Sources of Error Information
There are several sources of error information in MySQL:
• Each SQL statement executed results in an error code, an SQLSTATE value, and an error message,
as described in
see
Section C.3, "Server Error Codes and
• Errors can occur on the client side, usually involving problems communicating with the server; see
Section C.4, "Client Error Codes and
• SQL statement warning and error information is available through the
statements. The
ERRORS
warnings, and notes. The
value excludes warnings and notes.
SHOW SLAVE STATUS
the slave side.
SHOW ENGINE INNODB STATUS
foreign key error if a
• The
perror
Section 4.8.1,
Descriptions of server and client errors are provided later in this Appendix. For information about errors
related to InnoDB, see
C.2. Types of Error Values
When an error occurs in MySQL, the server returns two types of error values:
• A MySQL-specific error code. This value is numeric. It is not portable to other database systems.
Section C.2, "Types of Error
warning_count
error_count
statement output includes information about replication errors occurring on
statement output includes information about the most recent
CREATE TABLE
program provides information from the command line about error numbers. See
"perror
— Explain Error
Section 14.2.11,
Values". These errors are returned from the server side;
Messages".
Messages".
[507]
system variable indicates the number of errors,
[450]
system variable indicates the number of errors. Its
statement for an
InnoDB
Codes".
"InnoDB
Error
Handling".
2909
SHOW WARNINGS
table fails.
and
SHOW

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents