Documentation Home
MySQL 5.6 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 31.0Mb
PDF (A4) - 31.0Mb
PDF (RPM) - 29.3Mb
HTML Download (TGZ) - 7.2Mb
HTML Download (Zip) - 7.2Mb
HTML Download (RPM) - 6.2Mb
Man Pages (TGZ) - 175.7Kb
Man Pages (Zip) - 286.0Kb
Info (Gzip) - 3.0Mb
Info (Zip) - 3.0Mb
Excerpts from this Manual

MySQL 5.6 Reference Manual  /  ...  /  perror — Explain Error Codes

4.8.1 perror — Explain Error Codes

For most system errors, MySQL displays, in addition to an internal text message, the system error code in one of the following styles:

message ... (errno: #)
message ... (Errcode: #)

You can find out what the error code means by examining the documentation for your system or by using the perror utility.

perror prints a description for a system error code or for a storage engine (table handler) error code.

Invoke perror like this:

shell> perror [options] errorcode ...


shell> perror 13 64
OS error code  13:  Permission denied
OS error code  64:  Machine is not on the network

To obtain the error message for an NDB Cluster error code, invoke perror with the --ndb option:

shell> perror --ndb errorcode

The meaning of system error messages may be dependent on your operating system. A given error code may mean different things on different operating systems.

perror supports the following options.

  • --help, --info, -I, -?

    Display a help message and exit.

  • --ndb

    Print the error message for an NDB Cluster error code.

  • --silent, -s

    Silent mode. Print only the error message.

  • --verbose, -v

    Verbose mode. Print error code and message. This is the default behavior.

  • --version, -V

    Display version information and exit.

User Comments
  Posted by Dan Ross on June 3, 2003
Regarding list of MySQL errors.

If you use unix, you can generate the list with the command:
perror `seq a b`
where a is the first error code and b is the last error code you want to list.
For example,
perror `seq 0 10`
shows codes 0 through 10.
  Posted by Adrian Pitman on November 3, 2003
In Windows you will find perror in 'mysql\bin'

from the command line in this directory run the program with your error code;

perror.exe 2

This will return the results;
Error Code 2: No such file or directory
  Posted by on January 12, 2004
To generate an error list if you don't have the seq command on your system, and you do have perl:

perror `perl -e "print join ' ',1..100"`

Where 1 is the first error number, and 100 is the last error number you want to see (similar to seq).
  Posted by Philip Olson on February 13, 2004
The error return codes are listed here:
Although the messages aren't listed (yet?). See also the following bug report (and don't hesitate to vote!):
Sign Up Login You must be logged in to post a comment.