2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2024-09-03 19:15:59 +02:00
.TH "\fBCOMP_ERR\fR" "1" "4 September 2024" "MariaDB 11.4" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" comp_err
2009-05-25 11:59:47 +02:00
.SH "NAME"
2015-09-09 14:32:52 +02:00
comp_err \- compile MariaDB error message file
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBcomp_err\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB comp_err [\fR \fB \fI options\fR \fR \fB ]\fR
.SH "DESCRIPTION"
.PP
\fB comp_err\fR
creates the
2009-09-16 14:03:18 +02:00
errmsg\& .sys
2009-05-25 11:59:47 +02:00
file that is used by
2024-09-03 19:15:59 +02:00
\fB mariadbd\fR
2009-09-16 14:03:18 +02:00
to determine the error messages to display for different error codes\& .
2009-05-25 11:59:47 +02:00
\fB comp_err\fR
2015-09-09 14:32:52 +02:00
normally is run automatically when MariaDB is built\& . It compiles the
2009-09-16 14:03:18 +02:00
errmsg\& .sys
2009-05-25 11:59:47 +02:00
file from the plaintext file located at
2009-09-16 14:03:18 +02:00
sql/share/errmsg\& .txt
2015-09-09 14:32:52 +02:00
in MariaDB source distributions\& .
2009-05-25 11:59:47 +02:00
.PP
\fB comp_err\fR
also generates
2009-09-16 14:03:18 +02:00
mysqld_error\& .h,
mysqld_ername\& .h, and
sql_state\& .h
header files\& .
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
For more information about how error messages are defined, see the MariaDB Manual\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
\fB comp_err\fR
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB comp_err [\fR \fB \fI options\fR \fR \fB ]\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
\fB comp_err\fR
2010-04-28 15:06:11 +02:00
supports the following options\& .
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: help option
. \" help option: comp_err
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- ?\fR
.sp
2009-09-16 14:03:18 +02:00
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
. \}
. \" comp_err: charset option
. \" charset option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- charset=\fR \fB \fI path\fR \fR ,
\fB \- C \fR \fB \fI path\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The character set directory\& . The default is
\& .\& ./sql/share/charsets\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: debug option
. \" debug option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- debug=\fR \fB \fI debug_options\fR \fR ,
\fB \- # \fR \fB \fI debug_options\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
Write a debugging log\& . A typical
2009-05-25 11:59:47 +02:00
\fI debug_options\fR
2009-09-16 14:03:18 +02:00
string is
\' d:t:O,\fI file_name\fR \' \& . The default is
\' d:t:O,/tmp/comp_err\& .trace\' \& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: debug-info option
. \" debug-info option: comp_err
2009-05-25 11:59:47 +02:00
\fB \- \- debug\- info\fR ,
\fB \- T\fR
.sp
2009-09-16 14:03:18 +02:00
Print some debugging information when the program exits\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: header_file option
. \" header_file option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- header_file=\fR \fB \fI file_name\fR \fR ,
\fB \- H \fR \fB \fI file_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name of the error header file\& . The default is
2024-09-03 19:15:59 +02:00
mariadbd_error\& .h\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: in_file option
. \" in_file option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- in_file=\fR \fB \fI file_name\fR \fR ,
\fB \- F \fR \fB \fI file_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name of the input file\& . The default is
\& .\& ./sql/share/errmsg\& .txt\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: name_file option
. \" name_file option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- name_file=\fR \fB \fI file_name\fR \fR ,
\fB \- N \fR \fB \fI file_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name of the error name file\& . The default is
mysqld_ername\& .h\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: out_dir option
. \" out_dir option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- out_dir=\fR \fB \fI path\fR \fR ,
\fB \- D \fR \fB \fI path\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name of the output base directory\& . The default is
\& .\& ./sql/share/\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: out_file option
. \" out_file option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- out_file=\fR \fB \fI file_name\fR \fR ,
\fB \- O \fR \fB \fI file_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name of the output file\& . The default is
errmsg\& .sys\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: statefile option
. \" statefile option: comp_err
2009-12-01 08:24:05 +01:00
\fB \- \- statefile=\fR \fB \fI file_name\fR \fR ,
\fB \- S \fR \fB \fI file_name\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
The name for the SQLSTATE header file\& . The default is
sql_state\& .h\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" comp_err: version option
. \" version option: comp_err
2009-05-25 11:59:47 +02:00
\fB \- \- version\fR ,
\fB \- V\fR
.sp
2009-09-16 14:03:18 +02:00
Display version information and exit\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2024 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.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
2019-05-11 20:29:06 +02:00
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-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).