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.

270 lines
5.7 KiB

  1. '\" t
  2. .\" Title: \fBcomp_err\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 "\FBCOMP_ERR\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. .\" comp_err
  22. .SH "NAME"
  23. comp_err \- compile MySQL error message file
  24. .SH "SYNOPSIS"
  25. .HP \w'\fBcomp_err\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
  26. \fBcomp_err [\fR\fB\fIoptions\fR\fR\fB]\fR
  27. .SH "DESCRIPTION"
  28. .PP
  29. \fBcomp_err\fR
  30. creates the
  31. errmsg\&.sys
  32. file that is used by
  33. \fBmysqld\fR
  34. to determine the error messages to display for different error codes\&.
  35. \fBcomp_err\fR
  36. normally is run automatically when MySQL is built\&. It compiles the
  37. errmsg\&.sys
  38. file from the plaintext file located at
  39. sql/share/errmsg\&.txt
  40. in MySQL source distributions\&.
  41. .PP
  42. \fBcomp_err\fR
  43. also generates
  44. mysqld_error\&.h,
  45. mysqld_ername\&.h, and
  46. sql_state\&.h
  47. header files\&.
  48. .PP
  49. For more information about how error messages are defined, see the MySQL Internals Manual\&.
  50. .PP
  51. Invoke
  52. \fBcomp_err\fR
  53. like this:
  54. .sp
  55. .if n \{\
  56. .RS 4
  57. .\}
  58. .nf
  59. shell> \fBcomp_err [\fR\fB\fIoptions\fR\fR\fB]\fR
  60. .fi
  61. .if n \{\
  62. .RE
  63. .\}
  64. .PP
  65. \fBcomp_err\fR
  66. supports the following options\&.
  67. .sp
  68. .RS 4
  69. .ie n \{\
  70. \h'-04'\(bu\h'+03'\c
  71. .\}
  72. .el \{\
  73. .sp -1
  74. .IP \(bu 2.3
  75. .\}
  76. .\" comp_err: help option
  77. .\" help option: comp_err
  78. \fB\-\-help\fR,
  79. \fB\-?\fR
  80. .sp
  81. Display a help message and exit\&.
  82. .RE
  83. .sp
  84. .RS 4
  85. .ie n \{\
  86. \h'-04'\(bu\h'+03'\c
  87. .\}
  88. .el \{\
  89. .sp -1
  90. .IP \(bu 2.3
  91. .\}
  92. .\" comp_err: charset option
  93. .\" charset option: comp_err
  94. \fB\-\-charset=\fR\fB\fIpath\fR\fR,
  95. \fB\-C \fR\fB\fIpath\fR\fR
  96. .sp
  97. The character set directory\&. The default is
  98. \&.\&./sql/share/charsets\&.
  99. .RE
  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. .\" comp_err: debug option
  110. .\" debug option: comp_err
  111. \fB\-\-debug=\fR\fB\fIdebug_options\fR\fR,
  112. \fB\-# \fR\fB\fIdebug_options\fR\fR
  113. .sp
  114. Write a debugging log\&. A typical
  115. \fIdebug_options\fR
  116. string is
  117. \'d:t:O,\fIfile_name\fR\'\&. The default is
  118. \'d:t:O,/tmp/comp_err\&.trace\'\&.
  119. .RE
  120. .sp
  121. .RS 4
  122. .ie n \{\
  123. \h'-04'\(bu\h'+03'\c
  124. .\}
  125. .el \{\
  126. .sp -1
  127. .IP \(bu 2.3
  128. .\}
  129. .\" comp_err: debug-info option
  130. .\" debug-info option: comp_err
  131. \fB\-\-debug\-info\fR,
  132. \fB\-T\fR
  133. .sp
  134. Print some debugging information when the program exits\&.
  135. .RE
  136. .sp
  137. .RS 4
  138. .ie n \{\
  139. \h'-04'\(bu\h'+03'\c
  140. .\}
  141. .el \{\
  142. .sp -1
  143. .IP \(bu 2.3
  144. .\}
  145. .\" comp_err: header_file option
  146. .\" header_file option: comp_err
  147. \fB\-\-header_file=\fR\fB\fIfile_name\fR\fR,
  148. \fB\-H \fR\fB\fIfile_name\fR\fR
  149. .sp
  150. The name of the error header file\&. The default is
  151. mysqld_error\&.h\&.
  152. .RE
  153. .sp
  154. .RS 4
  155. .ie n \{\
  156. \h'-04'\(bu\h'+03'\c
  157. .\}
  158. .el \{\
  159. .sp -1
  160. .IP \(bu 2.3
  161. .\}
  162. .\" comp_err: in_file option
  163. .\" in_file option: comp_err
  164. \fB\-\-in_file=\fR\fB\fIfile_name\fR\fR,
  165. \fB\-F \fR\fB\fIfile_name\fR\fR
  166. .sp
  167. The name of the input file\&. The default is
  168. \&.\&./sql/share/errmsg\&.txt\&.
  169. .RE
  170. .sp
  171. .RS 4
  172. .ie n \{\
  173. \h'-04'\(bu\h'+03'\c
  174. .\}
  175. .el \{\
  176. .sp -1
  177. .IP \(bu 2.3
  178. .\}
  179. .\" comp_err: name_file option
  180. .\" name_file option: comp_err
  181. \fB\-\-name_file=\fR\fB\fIfile_name\fR\fR,
  182. \fB\-N \fR\fB\fIfile_name\fR\fR
  183. .sp
  184. The name of the error name file\&. The default is
  185. mysqld_ername\&.h\&.
  186. .RE
  187. .sp
  188. .RS 4
  189. .ie n \{\
  190. \h'-04'\(bu\h'+03'\c
  191. .\}
  192. .el \{\
  193. .sp -1
  194. .IP \(bu 2.3
  195. .\}
  196. .\" comp_err: out_dir option
  197. .\" out_dir option: comp_err
  198. \fB\-\-out_dir=\fR\fB\fIpath\fR\fR,
  199. \fB\-D \fR\fB\fIpath\fR\fR
  200. .sp
  201. The name of the output base directory\&. The default is
  202. \&.\&./sql/share/\&.
  203. .RE
  204. .sp
  205. .RS 4
  206. .ie n \{\
  207. \h'-04'\(bu\h'+03'\c
  208. .\}
  209. .el \{\
  210. .sp -1
  211. .IP \(bu 2.3
  212. .\}
  213. .\" comp_err: out_file option
  214. .\" out_file option: comp_err
  215. \fB\-\-out_file=\fR\fB\fIfile_name\fR\fR,
  216. \fB\-O \fR\fB\fIfile_name\fR\fR
  217. .sp
  218. The name of the output file\&. The default is
  219. errmsg\&.sys\&.
  220. .RE
  221. .sp
  222. .RS 4
  223. .ie n \{\
  224. \h'-04'\(bu\h'+03'\c
  225. .\}
  226. .el \{\
  227. .sp -1
  228. .IP \(bu 2.3
  229. .\}
  230. .\" comp_err: statefile option
  231. .\" statefile option: comp_err
  232. \fB\-\-statefile=\fR\fB\fIfile_name\fR\fR,
  233. \fB\-S \fR\fB\fIfile_name\fR\fR
  234. .sp
  235. The name for the SQLSTATE header file\&. The default is
  236. sql_state\&.h\&.
  237. .RE
  238. .sp
  239. .RS 4
  240. .ie n \{\
  241. \h'-04'\(bu\h'+03'\c
  242. .\}
  243. .el \{\
  244. .sp -1
  245. .IP \(bu 2.3
  246. .\}
  247. .\" comp_err: version option
  248. .\" version option: comp_err
  249. \fB\-\-version\fR,
  250. \fB\-V\fR
  251. .sp
  252. Display version information and exit\&.
  253. .RE
  254. .SH "COPYRIGHT"
  255. .br
  256. .PP
  257. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
  258. .PP
  259. 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.
  260. .PP
  261. 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.
  262. .PP
  263. 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/.
  264. .sp
  265. .SH "SEE ALSO"
  266. For more information, please refer to the MySQL Reference Manual,
  267. which may already be installed locally and which is also available
  268. online at http://dev.mysql.com/doc/.
  269. .SH AUTHOR
  270. Sun Microsystems, Inc. (http://www.mysql.com/).