You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
4.4 KiB

  1. '\" t
  2. .\" Title: \fBperror\fR
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
  5. .\" Date: 04/06/2010
  6. .\" Manual: MySQL Database System
  7. .\" Source: MySQL 5.1
  8. .\" Language: English
  9. .\"
  10. .TH "\FBPERROR\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .\" perror
  22. .\" error messages: displaying
  23. .\" errno
  24. .\" Errcode
  25. .SH "NAME"
  26. perror \- explain error codes
  27. .SH "SYNOPSIS"
  28. .HP \w'\fBperror\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIerrorcode\fR\fR\fB\ \&.\&.\&.\fR\ 'u
  29. \fBperror [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIerrorcode\fR\fR\fB \&.\&.\&.\fR
  30. .SH "DESCRIPTION"
  31. .PP
  32. For most system errors, MySQL displays, in addition to an internal text message, the system error code in one of the following styles:
  33. .sp
  34. .if n \{\
  35. .RS 4
  36. .\}
  37. .nf
  38. message \&.\&.\&. (errno: #)
  39. message \&.\&.\&. (Errcode: #)
  40. .fi
  41. .if n \{\
  42. .RE
  43. .\}
  44. .PP
  45. You can find out what the error code means by examining the documentation for your system or by using the
  46. \fBperror\fR
  47. utility\&.
  48. .PP
  49. \fBperror\fR
  50. prints a description for a system error code or for a storage engine (table handler) error code\&.
  51. .PP
  52. Invoke
  53. \fBperror\fR
  54. like this:
  55. .sp
  56. .if n \{\
  57. .RS 4
  58. .\}
  59. .nf
  60. shell> \fBperror [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIerrorcode\fR\fR\fB \&.\&.\&.\fR
  61. .fi
  62. .if n \{\
  63. .RE
  64. .\}
  65. .PP
  66. Example:
  67. .sp
  68. .if n \{\
  69. .RS 4
  70. .\}
  71. .nf
  72. shell> \fBperror 13 64\fR
  73. OS error code 13: Permission denied
  74. OS error code 64: Machine is not on the network
  75. .fi
  76. .if n \{\
  77. .RE
  78. .\}
  79. .PP
  80. To obtain the error message for a MySQL Cluster error code, invoke
  81. \fBperror\fR
  82. with the
  83. \fB\-\-ndb\fR
  84. option:
  85. .sp
  86. .if n \{\
  87. .RS 4
  88. .\}
  89. .nf
  90. shell> \fBperror \-\-ndb \fR\fB\fIerrorcode\fR\fR
  91. .fi
  92. .if n \{\
  93. .RE
  94. .\}
  95. .PP
  96. 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\&.
  97. .PP
  98. \fBperror\fR
  99. supports the following options\&.
  100. .sp
  101. .RS 4
  102. .ie n \{\
  103. \h'-04'\(bu\h'+03'\c
  104. .\}
  105. .el \{\
  106. .sp -1
  107. .IP \(bu 2.3
  108. .\}
  109. .\" perror: help option
  110. .\" help option: perror
  111. \fB\-\-help\fR,
  112. \fB\-\-info\fR,
  113. \fB\-I\fR,
  114. \fB\-?\fR
  115. .sp
  116. Display a help message and exit\&.
  117. .RE
  118. .sp
  119. .RS 4
  120. .ie n \{\
  121. \h'-04'\(bu\h'+03'\c
  122. .\}
  123. .el \{\
  124. .sp -1
  125. .IP \(bu 2.3
  126. .\}
  127. .\" perror: ndb option
  128. .\" ndb option: perror
  129. \fB\-\-ndb\fR
  130. .sp
  131. Print the error message for a MySQL Cluster error code\&.
  132. .RE
  133. .sp
  134. .RS 4
  135. .ie n \{\
  136. \h'-04'\(bu\h'+03'\c
  137. .\}
  138. .el \{\
  139. .sp -1
  140. .IP \(bu 2.3
  141. .\}
  142. .\" perror: silent option
  143. .\" silent option: perror
  144. \fB\-\-silent\fR,
  145. \fB\-s\fR
  146. .sp
  147. Silent mode\&. Print only the error message\&.
  148. .RE
  149. .sp
  150. .RS 4
  151. .ie n \{\
  152. \h'-04'\(bu\h'+03'\c
  153. .\}
  154. .el \{\
  155. .sp -1
  156. .IP \(bu 2.3
  157. .\}
  158. .\" perror: verbose option
  159. .\" verbose option: perror
  160. \fB\-\-verbose\fR,
  161. \fB\-v\fR
  162. .sp
  163. Verbose mode\&. Print error code and message\&. This is the default behavior\&.
  164. .RE
  165. .sp
  166. .RS 4
  167. .ie n \{\
  168. \h'-04'\(bu\h'+03'\c
  169. .\}
  170. .el \{\
  171. .sp -1
  172. .IP \(bu 2.3
  173. .\}
  174. .\" perror: version option
  175. .\" version option: perror
  176. \fB\-\-version\fR,
  177. \fB\-V\fR
  178. .sp
  179. Display version information and exit\&.
  180. .RE
  181. .SH "COPYRIGHT"
  182. .br
  183. .PP
  184. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
  185. .PP
  186. 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.
  187. .PP
  188. 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.
  189. .PP
  190. 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/.
  191. .sp
  192. .SH "SEE ALSO"
  193. For more information, please refer to the MySQL Reference Manual,
  194. which may already be installed locally and which is also available
  195. online at http://dev.mysql.com/doc/.
  196. .SH AUTHOR
  197. Sun Microsystems, Inc. (http://www.mysql.com/).