207 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Groff
		
	
	
	
		
		
			
		
	
	
			207 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Groff
		
	
	
	
| 
								 | 
							
								'\" t
							 | 
						||
| 
								 | 
							
								.\"     Title: \fBperror\fR
							 | 
						||
| 
								 | 
							
								.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
							 | 
						||
| 
								 | 
							
								.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
							 | 
						||
| 
								 | 
							
								.\"      Date: 11/04/2013
							 | 
						||
| 
								 | 
							
								.\"    Manual: MySQL Database System
							 | 
						||
| 
								 | 
							
								.\"    Source: MySQL 5.1
							 | 
						||
| 
								 | 
							
								.\"  Language: English
							 | 
						||
| 
								 | 
							
								.\"
							 | 
						||
| 
								 | 
							
								.TH "\FBPERROR\FR" "1" "11/04/2013" "MySQL 5\&.1" "MySQL Database System"
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" * Define some portability stuff
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
							 | 
						||
| 
								 | 
							
								.\" http://bugs.debian.org/507673
							 | 
						||
| 
								 | 
							
								.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
							 | 
						||
| 
								 | 
							
								.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
							 | 
						||
| 
								 | 
							
								.ie \n(.g .ds Aq \(aq
							 | 
						||
| 
								 | 
							
								.el       .ds Aq '
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" * set default formatting
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" disable hyphenation
							 | 
						||
| 
								 | 
							
								.nh
							 | 
						||
| 
								 | 
							
								.\" disable justification (adjust text to left margin only)
							 | 
						||
| 
								 | 
							
								.ad l
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" * MAIN CONTENT STARTS HERE *
							 | 
						||
| 
								 | 
							
								.\" -----------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								.\" perror
							 | 
						||
| 
								 | 
							
								.\" error messages: displaying
							 | 
						||
| 
								 | 
							
								.\" errno
							 | 
						||
| 
								 | 
							
								.\" Errcode
							 | 
						||
| 
								 | 
							
								.SH "NAME"
							 | 
						||
| 
								 | 
							
								perror \- explain error codes
							 | 
						||
| 
								 | 
							
								.SH "SYNOPSIS"
							 | 
						||
| 
								 | 
							
								.HP \w'\fBperror\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIerrorcode\fR\fR\fB\ \&.\&.\&.\fR\ 'u
							 | 
						||
| 
								 | 
							
								\fBperror [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIerrorcode\fR\fR\fB \&.\&.\&.\fR
							 | 
						||
| 
								 | 
							
								.SH "DESCRIPTION"
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								For most system errors, MySQL displays, in addition to an internal text message, the system error code in one of the following styles:
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.nf
							 | 
						||
| 
								 | 
							
								message \&.\&.\&. (errno: #)
							 | 
						||
| 
								 | 
							
								message \&.\&.\&. (Errcode: #)
							 | 
						||
| 
								 | 
							
								.fi
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								You can find out what the error code means by examining the documentation for your system or by using the
							 | 
						||
| 
								 | 
							
								\fBperror\fR
							 | 
						||
| 
								 | 
							
								utility\&.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								\fBperror\fR
							 | 
						||
| 
								 | 
							
								prints a description for a system error code or for a storage engine (table handler) error code\&.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								Invoke
							 | 
						||
| 
								 | 
							
								\fBperror\fR
							 | 
						||
| 
								 | 
							
								like this:
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.nf
							 | 
						||
| 
								 | 
							
								shell> \fBperror [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIerrorcode\fR\fR\fB \&.\&.\&.\fR
							 | 
						||
| 
								 | 
							
								.fi
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								Example:
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.nf
							 | 
						||
| 
								 | 
							
								shell> \fBperror 13 64\fR
							 | 
						||
| 
								 | 
							
								OS error code  13:  Permission denied
							 | 
						||
| 
								 | 
							
								OS error code  64:  Machine is not on the network
							 | 
						||
| 
								 | 
							
								.fi
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								To obtain the error message for a MySQL Cluster error code, invoke
							 | 
						||
| 
								 | 
							
								\fBperror\fR
							 | 
						||
| 
								 | 
							
								with the
							 | 
						||
| 
								 | 
							
								\fB\-\-ndb\fR
							 | 
						||
| 
								 | 
							
								option:
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.nf
							 | 
						||
| 
								 | 
							
								shell> \fBperror \-\-ndb \fR\fB\fIerrorcode\fR\fR
							 | 
						||
| 
								 | 
							
								.fi
							 | 
						||
| 
								 | 
							
								.if n \{\
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								Note that 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\&.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								\fBperror\fR
							 | 
						||
| 
								 | 
							
								supports the following options\&.
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.ie n \{\
							 | 
						||
| 
								 | 
							
								\h'-04'\(bu\h'+03'\c
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.el \{\
							 | 
						||
| 
								 | 
							
								.sp -1
							 | 
						||
| 
								 | 
							
								.IP \(bu 2.3
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.\" perror: help option
							 | 
						||
| 
								 | 
							
								.\" help option: perror
							 | 
						||
| 
								 | 
							
								\fB\-\-help\fR,
							 | 
						||
| 
								 | 
							
								\fB\-\-info\fR,
							 | 
						||
| 
								 | 
							
								\fB\-I\fR,
							 | 
						||
| 
								 | 
							
								\fB\-?\fR
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								Display a help message and exit\&.
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.ie n \{\
							 | 
						||
| 
								 | 
							
								\h'-04'\(bu\h'+03'\c
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.el \{\
							 | 
						||
| 
								 | 
							
								.sp -1
							 | 
						||
| 
								 | 
							
								.IP \(bu 2.3
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.\" perror: ndb option
							 | 
						||
| 
								 | 
							
								.\" ndb option: perror
							 | 
						||
| 
								 | 
							
								\fB\-\-ndb\fR
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								Print the error message for a MySQL Cluster error code\&.
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.ie n \{\
							 | 
						||
| 
								 | 
							
								\h'-04'\(bu\h'+03'\c
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.el \{\
							 | 
						||
| 
								 | 
							
								.sp -1
							 | 
						||
| 
								 | 
							
								.IP \(bu 2.3
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.\" perror: silent option
							 | 
						||
| 
								 | 
							
								.\" silent option: perror
							 | 
						||
| 
								 | 
							
								\fB\-\-silent\fR,
							 | 
						||
| 
								 | 
							
								\fB\-s\fR
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								Silent mode\&. Print only the error message\&.
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.ie n \{\
							 | 
						||
| 
								 | 
							
								\h'-04'\(bu\h'+03'\c
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.el \{\
							 | 
						||
| 
								 | 
							
								.sp -1
							 | 
						||
| 
								 | 
							
								.IP \(bu 2.3
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.\" perror: verbose option
							 | 
						||
| 
								 | 
							
								.\" verbose option: perror
							 | 
						||
| 
								 | 
							
								\fB\-\-verbose\fR,
							 | 
						||
| 
								 | 
							
								\fB\-v\fR
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								Verbose mode\&. Print error code and message\&. This is the default behavior\&.
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.RS 4
							 | 
						||
| 
								 | 
							
								.ie n \{\
							 | 
						||
| 
								 | 
							
								\h'-04'\(bu\h'+03'\c
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.el \{\
							 | 
						||
| 
								 | 
							
								.sp -1
							 | 
						||
| 
								 | 
							
								.IP \(bu 2.3
							 | 
						||
| 
								 | 
							
								.\}
							 | 
						||
| 
								 | 
							
								.\" perror: version option
							 | 
						||
| 
								 | 
							
								.\" version option: perror
							 | 
						||
| 
								 | 
							
								\fB\-\-version\fR,
							 | 
						||
| 
								 | 
							
								\fB\-V\fR
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								Display version information and exit\&.
							 | 
						||
| 
								 | 
							
								.RE
							 | 
						||
| 
								 | 
							
								.SH "COPYRIGHT"
							 | 
						||
| 
								 | 
							
								.br
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
							 | 
						||
| 
								 | 
							
								.PP
							 | 
						||
| 
								 | 
							
								You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
							 | 
						||
| 
								 | 
							
								.sp
							 | 
						||
| 
								 | 
							
								.SH "SEE ALSO"
							 | 
						||
| 
								 | 
							
								For more information, please refer to the MySQL Reference Manual,
							 | 
						||
| 
								 | 
							
								which may already be installed locally and which is also available
							 | 
						||
| 
								 | 
							
								online at http://dev.mysql.com/doc/.
							 | 
						||
| 
								 | 
							
								.SH AUTHOR
							 | 
						||
| 
								 | 
							
								Oracle Corporation (http://dev.mysql.com/).
							 |