• Home
  • MySQL
  • PHP
  • Apache
  • About
  • Contact Us
 
 
 
  • MySQL 5.5 Reference Manual
  • MySQL 5.1 Reference Manual
  • MySQL 3.23/4.0/4.1 Manual
  • MySQL 4.0 Russian Manual


MySQL 5.5 Reference Manual :: B Errors, Error Codes, and Common Problems :: B.1 Sources of Error Information
« B Errors, Error Codes, and Common Problems

B.2 Types of Error Values »
Section Navigation      [Toggle]
  • B Errors, Error Codes, and Common Problems
  • B.1 Sources of Error Information
  • B.2 Types of Error Values
  • B.3 Server Error Codes and Messages
  • B.4 Client Error Codes and Messages
  • B.5 Problems and Common Errors

B.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 Section B.2, “Types of Error Values”. These errors are returned from the server side; see Section B.3, “Server Error Codes and Messages”.

  • Errors can occur on the client side, usually involving problems communicating with the server; see Section B.4, “Client Error Codes and Messages”.

  • SQL statement warning and error information is available via the SHOW WARNINGS and SHOW ERRORS statements. The warning_count and error_count system variables provide counts of the number of warnings and errors.

  • SHOW SLAVE STATUS statement output includes information about replication errors occurring on the slave side.

  • SHOW ENGINE INNODB STATUS statement output includes information about the most recent foreign key error if a CREATE TABLE statement for an InnoDB table fails.

  • The perror program provides information from the command line about error numbers. See Section 4.8.1, “perror — Explain Error Codes”.

Descriptions of server and client errors are provided later in this Appendix. For information about errors related to InnoDB, see Section 13.6.12, “InnoDB Error Handling”.

Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Previous / Next / Up / Table of Contents

Top / Previous / Next / Up / Table of Contents
Copyright © 2011, doc0.ru
All rights reserved