初版
This commit is contained in:
286
build/lib/mysql/man/man1/comp_err.1
Normal file
286
build/lib/mysql/man/man1/comp_err.1
Normal file
@@ -0,0 +1,286 @@
|
||||
'\" t
|
||||
.\" Title: \fBcomp_err\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 "\FBCOMP_ERR\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" comp_err
|
||||
.SH "NAME"
|
||||
comp_err \- compile MySQL error message file
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBcomp_err\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBcomp_err [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBcomp_err\fR
|
||||
creates the
|
||||
errmsg\&.sys
|
||||
file that is used by
|
||||
\fBmysqld\fR
|
||||
to determine the error messages to display for different error codes\&.
|
||||
\fBcomp_err\fR
|
||||
normally is run automatically when MySQL is built\&. It compiles the
|
||||
errmsg\&.sys
|
||||
file from the plaintext file located at
|
||||
sql/share/errmsg\&.txt
|
||||
in MySQL source distributions\&.
|
||||
.PP
|
||||
\fBcomp_err\fR
|
||||
also generates
|
||||
mysqld_error\&.h,
|
||||
mysqld_ername\&.h, and
|
||||
sql_state\&.h
|
||||
header files\&.
|
||||
.PP
|
||||
For more information about how error messages are defined, see the
|
||||
\m[blue]\fBMySQL Internals Manual\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBcomp_err\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBcomp_err [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBcomp_err\fR
|
||||
supports the following options\&.
|
||||
.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
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" comp_err: charset option
|
||||
.\" charset option: comp_err
|
||||
\fB\-\-charset=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-C \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-debug=\fR\fB\fIdebug_options\fR\fR,
|
||||
\fB\-# \fR\fB\fIdebug_options\fR\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:O,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:O,/tmp/comp_err\&.trace\*(Aq\&.
|
||||
.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
|
||||
\fB\-\-debug\-info\fR,
|
||||
\fB\-T\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-header_file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-H \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
The name of the error header file\&. The default is
|
||||
mysqld_error\&.h\&.
|
||||
.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
|
||||
\fB\-\-in_file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-F \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-name_file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-N \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-out_dir=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-D \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-out_file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-O \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
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
|
||||
\fB\-\-statefile=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-S \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
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
|
||||
\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 "NOTES"
|
||||
.IP " 1." 4
|
||||
MySQL Internals Manual
|
||||
.RS 4
|
||||
\%http://dev.mysql.com/doc/internals/en
|
||||
.RE
|
||||
.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/).
|
||||
166
build/lib/mysql/man/man1/innochecksum.1
Normal file
166
build/lib/mysql/man/man1/innochecksum.1
Normal file
@@ -0,0 +1,166 @@
|
||||
'\" t
|
||||
.\" Title: \fBinnochecksum\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 "\FBINNOCHECKSUM\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" innochecksum
|
||||
.SH "NAME"
|
||||
innochecksum \- offline InnoDB file checksum utility
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBinnochecksum\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIfile_name\fR\fR\ 'u
|
||||
\fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBinnochecksum\fR
|
||||
prints checksums for
|
||||
InnoDB
|
||||
files\&. This tool reads an
|
||||
InnoDB
|
||||
tablespace file, calculates the checksum for each page, compares the calculated checksum to the stored checksum, and reports mismatches, which indicate damaged pages\&. It was originally developed to speed up verifying the integrity of tablespace files after power outages but can also be used after file copies\&. Because checksum mismatches will cause
|
||||
InnoDB
|
||||
to deliberately shut down a running server, it can be preferable to use this tool rather than waiting for a server in production usage to encounter the damaged pages\&.
|
||||
.PP
|
||||
\fBinnochecksum\fR
|
||||
cannot be used on tablespace files that the server already has open\&. For such files, you should use
|
||||
CHECK TABLE
|
||||
to check tables within the tablespace\&.
|
||||
.PP
|
||||
If checksum mismatches are found, you would normally restore the tablespace from backup or start the server and attempt to use
|
||||
\fBmysqldump\fR
|
||||
to make a backup of the tables within the tablespace\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBinnochecksum\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBinnochecksum\fR
|
||||
supports the following options\&. For options that refer to page numbers, the numbers are zero\-based\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-c\fR
|
||||
.sp
|
||||
Print a count of the number of pages in the file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-d\fR
|
||||
.sp
|
||||
Debug mode; prints checksums for each page\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-e \fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
End at this page number\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-p \fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
Check only this page number\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-s \fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
Start at this page number\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode; print a progress indicator every five seconds\&.
|
||||
.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/).
|
||||
85
build/lib/mysql/man/man1/msql2mysql.1
Normal file
85
build/lib/mysql/man/man1/msql2mysql.1
Normal file
@@ -0,0 +1,85 @@
|
||||
'\" t
|
||||
.\" Title: \fBmsql2mysql\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 "\FBMSQL2MYSQL\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" msql2mysql
|
||||
.SH "NAME"
|
||||
msql2mysql \- convert mSQL programs for use with MySQL
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmsql2mysql\fR\fB\fIC\-source\-file\fR\fR\fB\ \&.\&.\&.\fR\ 'u
|
||||
\fBmsql2mysql\fR\fB\fIC\-source\-file\fR\fR\fB \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
Initially, the MySQL C API was developed to be very similar to that for the mSQL database system\&. Because of this, mSQL programs often can be converted relatively easily for use with MySQL by changing the names of the C API functions\&.
|
||||
.PP
|
||||
The
|
||||
\fBmsql2mysql\fR
|
||||
utility performs the conversion of mSQL C API function calls to their MySQL equivalents\&.
|
||||
\fBmsql2mysql\fR
|
||||
converts the input file in place, so make a copy of the original before converting it\&. For example, use
|
||||
\fBmsql2mysql\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBcp client\-prog\&.c client\-prog\&.c\&.orig\fR
|
||||
shell> \fBmsql2mysql client\-prog\&.c\fR
|
||||
client\-prog\&.c converted
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Then examine
|
||||
client\-prog\&.c
|
||||
and make any post\-conversion revisions that may be necessary\&.
|
||||
.PP
|
||||
\fBmsql2mysql\fR
|
||||
uses the
|
||||
\fBreplace\fR
|
||||
utility to make the function name substitutions\&. See
|
||||
\fBreplace\fR(1)\&.
|
||||
.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/).
|
||||
220
build/lib/mysql/man/man1/my_print_defaults.1
Normal file
220
build/lib/mysql/man/man1/my_print_defaults.1
Normal file
@@ -0,0 +1,220 @@
|
||||
'\" t
|
||||
.\" Title: \fBmy_print_defaults\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 "\FBMY_PRINT_DEFAULTS" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" my_print_defaults
|
||||
.SH "NAME"
|
||||
my_print_defaults \- display options from option files
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmy_print_defaults\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIoption_group\fR\fR\fB\ \&.\&.\&.\fR\ 'u
|
||||
\fBmy_print_defaults [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIoption_group\fR\fR\fB \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmy_print_defaults\fR
|
||||
displays the options that are present in option groups of option files\&. The output indicates what options will be used by programs that read the specified option groups\&. For example, the
|
||||
\fBmysqlcheck\fR
|
||||
program reads the
|
||||
[mysqlcheck]
|
||||
and
|
||||
[client]
|
||||
option groups\&. To see what options are present in those groups in the standard option files, invoke
|
||||
\fBmy_print_defaults\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmy_print_defaults mysqlcheck client\fR
|
||||
\-\-user=myusername
|
||||
\-\-password=secret
|
||||
\-\-host=localhost
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The output consists of options, one per line, in the form that they would be specified on the command line\&.
|
||||
.PP
|
||||
\fBmy_print_defaults\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: help option
|
||||
.\" help option: my_print_defaults
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" my_print_defaults: config-file option
|
||||
.\" config-file option: my_print_defaults
|
||||
\fB\-\-config\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
.\" my_print_defaults: defaults-file option
|
||||
.\" defaults-file option: my_print_defaults
|
||||
\fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-c \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Read only the given option file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: debug option
|
||||
.\" debug option: my_print_defaults
|
||||
\fB\-\-debug=\fR\fB\fIdebug_options\fR\fR,
|
||||
\fB\-# \fR\fB\fIdebug_options\fR\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:o,/tmp/my_print_defaults\&.trace\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: defaults-extra-file option
|
||||
.\" defaults-extra-file option: my_print_defaults
|
||||
\fB\-\-defaults\-extra\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
.\" my_print_defaults: extra-file option
|
||||
.\" extra-file option: my_print_defaults
|
||||
\fB\-\-extra\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-e \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Read this option file after the global option file but (on Unix) before the user option file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: defaults-group-suffix option
|
||||
.\" defaults-group-suffix option: my_print_defaults
|
||||
\fB\-\-defaults\-group\-suffix=\fR\fB\fIsuffix\fR\fR,
|
||||
\fB\-g \fR\fB\fIsuffix\fR\fR
|
||||
.sp
|
||||
In addition to the groups named on the command line, read groups that have the given suffix\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: no-defaults option
|
||||
.\" no-defaults option: my_print_defaults
|
||||
\fB\-\-no\-defaults\fR,
|
||||
\fB\-n\fR
|
||||
.sp
|
||||
Return an empty string\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: verbose option
|
||||
.\" verbose option: my_print_defaults
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" my_print_defaults: version option
|
||||
.\" version option: my_print_defaults
|
||||
\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/).
|
||||
267
build/lib/mysql/man/man1/myisam_ftdump.1
Normal file
267
build/lib/mysql/man/man1/myisam_ftdump.1
Normal file
@@ -0,0 +1,267 @@
|
||||
'\" t
|
||||
.\" Title: \fBmyisam_ftdump\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 "\FBMYISAM_FTDUMP\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" myisam_ftdump
|
||||
.SH "NAME"
|
||||
myisam_ftdump \- display full\-text index information
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmyisam_ftdump\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fItbl_name\fR\fR\fB\ \fR\fB\fIindex_num\fR\fR\ 'u
|
||||
\fBmyisam_ftdump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fItbl_name\fR\fR\fB \fR\fB\fIindex_num\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmyisam_ftdump\fR
|
||||
displays information about
|
||||
FULLTEXT
|
||||
indexes in
|
||||
MyISAM
|
||||
tables\&. It reads the
|
||||
MyISAM
|
||||
index file directly, so it must be run on the server host where the table is located\&. Before using
|
||||
\fBmyisam_ftdump\fR, be sure to issue a
|
||||
FLUSH TABLES
|
||||
statement first if the server is running\&.
|
||||
.PP
|
||||
\fBmyisam_ftdump\fR
|
||||
scans and dumps the entire index, which is not particularly fast\&. On the other hand, the distribution of words changes infrequently, so it need not be run often\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmyisam_ftdump\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisam_ftdump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fItbl_name\fR\fR\fB \fR\fB\fIindex_num\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The
|
||||
\fItbl_name\fR
|
||||
argument should be the name of a
|
||||
MyISAM
|
||||
table\&. You can also specify a table by naming its index file (the file with the
|
||||
\&.MYI
|
||||
suffix)\&. If you do not invoke
|
||||
\fBmyisam_ftdump\fR
|
||||
in the directory where the table files are located, the table or index file name must be preceded by the path name to the table\*(Aqs database directory\&. Index numbers begin with 0\&.
|
||||
.PP
|
||||
Example: Suppose that the
|
||||
test
|
||||
database contains a table named
|
||||
mytexttable
|
||||
that has the following definition:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
CREATE TABLE mytexttable
|
||||
(
|
||||
id INT NOT NULL,
|
||||
txt TEXT NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
FULLTEXT (txt)
|
||||
) ENGINE=MyISAM;
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The index on
|
||||
id
|
||||
is index 0 and the
|
||||
FULLTEXT
|
||||
index on
|
||||
txt
|
||||
is index 1\&. If your working directory is the
|
||||
test
|
||||
database directory, invoke
|
||||
\fBmyisam_ftdump\fR
|
||||
as follows:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisam_ftdump mytexttable 1\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
If the path name to the
|
||||
test
|
||||
database directory is
|
||||
/usr/local/mysql/data/test, you can also specify the table name argument using that path name\&. This is useful if you do not invoke
|
||||
\fBmyisam_ftdump\fR
|
||||
in the database directory:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisam_ftdump /usr/local/mysql/data/test/mytexttable 1\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You can use
|
||||
\fBmyisam_ftdump\fR
|
||||
to generate a list of index entries in order of frequency of occurrence like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisam_ftdump \-c mytexttable 1 | sort \-r\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmyisam_ftdump\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisam_ftdump: help option
|
||||
.\" help option: myisam_ftdump
|
||||
\fB\-\-help\fR,
|
||||
\fB\-h\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
|
||||
.\}
|
||||
.\" myisam_ftdump: count option
|
||||
.\" count option: myisam_ftdump
|
||||
\fB\-\-count\fR,
|
||||
\fB\-c\fR
|
||||
.sp
|
||||
Calculate per\-word statistics (counts and global weights)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisam_ftdump: dump option
|
||||
.\" dump option: myisam_ftdump
|
||||
\fB\-\-dump\fR,
|
||||
\fB\-d\fR
|
||||
.sp
|
||||
Dump the index, including data offsets and word weights\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisam_ftdump: length option
|
||||
.\" length option: myisam_ftdump
|
||||
\fB\-\-length\fR,
|
||||
\fB\-l\fR
|
||||
.sp
|
||||
Report the length distribution\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisam_ftdump: stats option
|
||||
.\" stats option: myisam_ftdump
|
||||
\fB\-\-stats\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Report global index statistics\&. This is the default operation if no other operation is specified\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisam_ftdump: verbose option
|
||||
.\" verbose option: myisam_ftdump
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more output about what the program does\&.
|
||||
.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/).
|
||||
2506
build/lib/mysql/man/man1/myisamchk.1
Normal file
2506
build/lib/mysql/man/man1/myisamchk.1
Normal file
File diff suppressed because it is too large
Load Diff
244
build/lib/mysql/man/man1/myisamlog.1
Normal file
244
build/lib/mysql/man/man1/myisamlog.1
Normal file
@@ -0,0 +1,244 @@
|
||||
'\" t
|
||||
.\" Title: \fBmyisamlog\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 "\FBMYISAMLOG\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" myisamlog
|
||||
.SH "NAME"
|
||||
myisamlog \- display MyISAM log file contents
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmyisamlog\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIlog_file\fR\fR\fB\ [\fR\fB\fItbl_name\fR\fR\fB]\ \&.\&.\&.]\fR\ 'u
|
||||
\fBmyisamlog [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIlog_file\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB] \&.\&.\&.]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmyisamlog\fR
|
||||
processes the contents of a
|
||||
MyISAM
|
||||
log file\&. To create such a file, start the server with a
|
||||
\fB\-\-log\-isam=\fR\fBlog_file\fR
|
||||
option\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmyisamlog\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisamlog [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIfile_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB] \&.\&.\&.]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The default operation is update (\fB\-u\fR)\&. If a recovery is done (\fB\-r\fR), all writes and possibly updates and deletes are done and errors are only counted\&. The default log file name is
|
||||
myisam\&.log
|
||||
if no
|
||||
\fIlog_file\fR
|
||||
argument is given\&. If tables are named on the command line, only those tables are updated\&.
|
||||
.PP
|
||||
\fBmyisamlog\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-?\fR,
|
||||
\fB\-I\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
|
||||
.\}
|
||||
\fB\-c \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Execute only
|
||||
\fIN\fR
|
||||
commands\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-f \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Specify the maximum number of open files\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-i\fR
|
||||
.sp
|
||||
Display extra information before exiting\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-o \fR\fB\fIoffset\fR\fR
|
||||
.sp
|
||||
Specify the starting offset\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-p \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Remove
|
||||
\fIN\fR
|
||||
components from path\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-r\fR
|
||||
.sp
|
||||
Perform a recovery operation\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-R \fR\fB\fIrecord_pos_file record_pos\fR\fR
|
||||
.sp
|
||||
Specify record position file and record position\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-u\fR
|
||||
.sp
|
||||
Perform an update operation\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more output about what the program does\&. This option can be given multiple times to produce more and more output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-w \fR\fB\fIwrite_file\fR\fR
|
||||
.sp
|
||||
Specify the write file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information\&.
|
||||
.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/).
|
||||
857
build/lib/mysql/man/man1/myisampack.1
Normal file
857
build/lib/mysql/man/man1/myisampack.1
Normal file
@@ -0,0 +1,857 @@
|
||||
'\" t
|
||||
.\" Title: \fBmyisampack\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 "\FBMYISAMPACK\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" myisampack
|
||||
.\" compressed tables
|
||||
.\" tables: compressed
|
||||
.\" MyISAM: compressed tables
|
||||
.SH "NAME"
|
||||
myisampack \- generate compressed, read\-only MyISAM tables
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmyisampack\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIfile_name\fR\fR\fB\ \&.\&.\&.\fR\ 'u
|
||||
\fBmyisampack [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmyisampack\fR
|
||||
utility compresses
|
||||
MyISAM
|
||||
tables\&.
|
||||
\fBmyisampack\fR
|
||||
works by compressing each column in the table separately\&. Usually,
|
||||
\fBmyisampack\fR
|
||||
packs the data file 40% to 70%\&.
|
||||
.PP
|
||||
When the table is used later, the server reads into memory the information needed to decompress columns\&. This results in much better performance when accessing individual rows, because you only have to uncompress exactly one row\&.
|
||||
.PP
|
||||
MySQL uses
|
||||
mmap()
|
||||
when possible to perform memory mapping on compressed tables\&. If
|
||||
mmap()
|
||||
does not work, MySQL falls back to normal read/write file operations\&.
|
||||
.PP
|
||||
Please note the following:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If the
|
||||
\fBmysqld\fR
|
||||
server was invoked with external locking disabled, it is not a good idea to invoke
|
||||
\fBmyisampack\fR
|
||||
if the table might be updated by the server during the packing process\&. It is safest to compress tables with the server stopped\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
After packing a table, it becomes read only\&. This is generally intended (such as when accessing packed tables on a CD)\&.
|
||||
.RE
|
||||
.PP
|
||||
Invoke
|
||||
\fBmyisampack\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisampack [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Each file name argument should be the name of an index (\&.MYI) file\&. If you are not in the database directory, you should specify the path name to the file\&. It is permissible to omit the
|
||||
\&.MYI
|
||||
extension\&.
|
||||
.PP
|
||||
After you compress a table with
|
||||
\fBmyisampack\fR, you should use
|
||||
\fBmyisamchk \-rq\fR
|
||||
to rebuild its indexes\&.
|
||||
\fBmyisamchk\fR(1)\&.
|
||||
.PP
|
||||
\fBmyisampack\fR
|
||||
supports the following options\&. It also reads option files and supports the options for processing them described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: help option
|
||||
.\" help option: myisampack
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" myisampack: backup option
|
||||
.\" backup option: myisampack
|
||||
\fB\-\-backup\fR,
|
||||
\fB\-b\fR
|
||||
.sp
|
||||
Make a backup of each table\*(Aqs data file using the name
|
||||
\fItbl_name\fR\&.OLD\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: character-sets-dir option
|
||||
.\" character-sets-dir option: myisampack
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: debug option
|
||||
.\" debug option: myisampack
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:o\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: force option
|
||||
.\" force option: myisampack
|
||||
\fB\-\-force\fR,
|
||||
\fB\-f\fR
|
||||
.sp
|
||||
Produce a packed table even if it becomes larger than the original or if the intermediate file from an earlier invocation of
|
||||
\fBmyisampack\fR
|
||||
exists\&. (\fBmyisampack\fR
|
||||
creates an intermediate file named
|
||||
\fItbl_name\fR\&.TMD
|
||||
in the database directory while it compresses the table\&. If you kill
|
||||
\fBmyisampack\fR, the
|
||||
\&.TMD
|
||||
file might not be deleted\&.) Normally,
|
||||
\fBmyisampack\fR
|
||||
exits with an error if it finds that
|
||||
\fItbl_name\fR\&.TMD
|
||||
exists\&. With
|
||||
\fB\-\-force\fR,
|
||||
\fBmyisampack\fR
|
||||
packs the table anyway\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: join option
|
||||
.\" join option: myisampack
|
||||
\fB\-\-join=\fR\fB\fIbig_tbl_name\fR\fR,
|
||||
\fB\-j \fR\fB\fIbig_tbl_name\fR\fR
|
||||
.sp
|
||||
Join all tables named on the command line into a single packed table
|
||||
\fIbig_tbl_name\fR\&. All tables that are to be combined
|
||||
\fImust\fR
|
||||
have identical structure (same column names and types, same indexes, and so forth)\&.
|
||||
.sp
|
||||
\fIbig_tbl_name\fR
|
||||
must not exist prior to the join operation\&. All source tables named on the command line to be merged into
|
||||
\fIbig_tbl_name\fR
|
||||
must exist\&. The source tables are read for the join operation but not modified\&. The join operation does not create a
|
||||
\&.frm
|
||||
file for
|
||||
\fIbig_tbl_name\fR, so after the join operation finishes, copy the
|
||||
\&.frm
|
||||
file from one of the source tables and name it
|
||||
\fIbig_tbl_name\fR\&.frm\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: silent option
|
||||
.\" silent option: myisampack
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Silent mode\&. Write output only when errors occur\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: test option
|
||||
.\" test option: myisampack
|
||||
\fB\-\-test\fR,
|
||||
\fB\-t\fR
|
||||
.sp
|
||||
Do not actually pack the table, just test packing it\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: tmpdir option
|
||||
.\" tmpdir option: myisampack
|
||||
\fB\-\-tmpdir=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-T \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
Use the named directory as the location where
|
||||
\fBmyisampack\fR
|
||||
creates temporary files\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: verbose option
|
||||
.\" verbose option: myisampack
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Write information about the progress of the packing operation and its result\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: version option
|
||||
.\" version option: myisampack
|
||||
\fB\-\-version\fR,
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" myisampack: wait option
|
||||
.\" wait option: myisampack
|
||||
\fB\-\-wait\fR,
|
||||
\fB\-w\fR
|
||||
.sp
|
||||
Wait and retry if the table is in use\&. If the
|
||||
\fBmysqld\fR
|
||||
server was invoked with external locking disabled, it is not a good idea to invoke
|
||||
\fBmyisampack\fR
|
||||
if the table might be updated by the server during the packing process\&.
|
||||
.RE
|
||||
.\" examples: compressed tables
|
||||
.PP
|
||||
The following sequence of commands illustrates a typical table compression session:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBls \-l station\&.*\fR
|
||||
\-rw\-rw\-r\-\- 1 monty my 994128 Apr 17 19:00 station\&.MYD
|
||||
\-rw\-rw\-r\-\- 1 monty my 53248 Apr 17 19:00 station\&.MYI
|
||||
\-rw\-rw\-r\-\- 1 monty my 5767 Apr 17 19:00 station\&.frm
|
||||
shell> \fBmyisamchk \-dvv station\fR
|
||||
MyISAM file: station
|
||||
Isam\-version: 2
|
||||
Creation time: 1996\-03\-13 10:08:58
|
||||
Recover time: 1997\-02\-02 3:06:43
|
||||
Data records: 1192 Deleted blocks: 0
|
||||
Datafile parts: 1192 Deleted data: 0
|
||||
Datafile pointer (bytes): 2 Keyfile pointer (bytes): 2
|
||||
Max datafile length: 54657023 Max keyfile length: 33554431
|
||||
Recordlength: 834
|
||||
Record format: Fixed length
|
||||
table description:
|
||||
Key Start Len Index Type Root Blocksize Rec/key
|
||||
1 2 4 unique unsigned long 1024 1024 1
|
||||
2 32 30 multip\&. text 10240 1024 1
|
||||
Field Start Length Type
|
||||
1 1 1
|
||||
2 2 4
|
||||
3 6 4
|
||||
4 10 1
|
||||
5 11 20
|
||||
6 31 1
|
||||
7 32 30
|
||||
8 62 35
|
||||
9 97 35
|
||||
10 132 35
|
||||
11 167 4
|
||||
12 171 16
|
||||
13 187 35
|
||||
14 222 4
|
||||
15 226 16
|
||||
16 242 20
|
||||
17 262 20
|
||||
18 282 20
|
||||
19 302 30
|
||||
20 332 4
|
||||
21 336 4
|
||||
22 340 1
|
||||
23 341 8
|
||||
24 349 8
|
||||
25 357 8
|
||||
26 365 2
|
||||
27 367 2
|
||||
28 369 4
|
||||
29 373 4
|
||||
30 377 1
|
||||
31 378 2
|
||||
32 380 8
|
||||
33 388 4
|
||||
34 392 4
|
||||
35 396 4
|
||||
36 400 4
|
||||
37 404 1
|
||||
38 405 4
|
||||
39 409 4
|
||||
40 413 4
|
||||
41 417 4
|
||||
42 421 4
|
||||
43 425 4
|
||||
44 429 20
|
||||
45 449 30
|
||||
46 479 1
|
||||
47 480 1
|
||||
48 481 79
|
||||
49 560 79
|
||||
50 639 79
|
||||
51 718 79
|
||||
52 797 8
|
||||
53 805 1
|
||||
54 806 1
|
||||
55 807 20
|
||||
56 827 4
|
||||
57 831 4
|
||||
shell> \fBmyisampack station\&.MYI\fR
|
||||
Compressing station\&.MYI: (1192 records)
|
||||
\- Calculating statistics
|
||||
normal: 20 empty\-space: 16 empty\-zero: 12 empty\-fill: 11
|
||||
pre\-space: 0 end\-space: 12 table\-lookups: 5 zero: 7
|
||||
Original trees: 57 After join: 17
|
||||
\- Compressing file
|
||||
87\&.14%
|
||||
Remember to run myisamchk \-rq on compressed tables
|
||||
shell> \fBls \-l station\&.*\fR
|
||||
\-rw\-rw\-r\-\- 1 monty my 127874 Apr 17 19:00 station\&.MYD
|
||||
\-rw\-rw\-r\-\- 1 monty my 55296 Apr 17 19:04 station\&.MYI
|
||||
\-rw\-rw\-r\-\- 1 monty my 5767 Apr 17 19:00 station\&.frm
|
||||
shell> \fBmyisamchk \-dvv station\fR
|
||||
MyISAM file: station
|
||||
Isam\-version: 2
|
||||
Creation time: 1996\-03\-13 10:08:58
|
||||
Recover time: 1997\-04\-17 19:04:26
|
||||
Data records: 1192 Deleted blocks: 0
|
||||
Datafile parts: 1192 Deleted data: 0
|
||||
Datafile pointer (bytes): 3 Keyfile pointer (bytes): 1
|
||||
Max datafile length: 16777215 Max keyfile length: 131071
|
||||
Recordlength: 834
|
||||
Record format: Compressed
|
||||
table description:
|
||||
Key Start Len Index Type Root Blocksize Rec/key
|
||||
1 2 4 unique unsigned long 10240 1024 1
|
||||
2 32 30 multip\&. text 54272 1024 1
|
||||
Field Start Length Type Huff tree Bits
|
||||
1 1 1 constant 1 0
|
||||
2 2 4 zerofill(1) 2 9
|
||||
3 6 4 no zeros, zerofill(1) 2 9
|
||||
4 10 1 3 9
|
||||
5 11 20 table\-lookup 4 0
|
||||
6 31 1 3 9
|
||||
7 32 30 no endspace, not_always 5 9
|
||||
8 62 35 no endspace, not_always, no empty 6 9
|
||||
9 97 35 no empty 7 9
|
||||
10 132 35 no endspace, not_always, no empty 6 9
|
||||
11 167 4 zerofill(1) 2 9
|
||||
12 171 16 no endspace, not_always, no empty 5 9
|
||||
13 187 35 no endspace, not_always, no empty 6 9
|
||||
14 222 4 zerofill(1) 2 9
|
||||
15 226 16 no endspace, not_always, no empty 5 9
|
||||
16 242 20 no endspace, not_always 8 9
|
||||
17 262 20 no endspace, no empty 8 9
|
||||
18 282 20 no endspace, no empty 5 9
|
||||
19 302 30 no endspace, no empty 6 9
|
||||
20 332 4 always zero 2 9
|
||||
21 336 4 always zero 2 9
|
||||
22 340 1 3 9
|
||||
23 341 8 table\-lookup 9 0
|
||||
24 349 8 table\-lookup 10 0
|
||||
25 357 8 always zero 2 9
|
||||
26 365 2 2 9
|
||||
27 367 2 no zeros, zerofill(1) 2 9
|
||||
28 369 4 no zeros, zerofill(1) 2 9
|
||||
29 373 4 table\-lookup 11 0
|
||||
30 377 1 3 9
|
||||
31 378 2 no zeros, zerofill(1) 2 9
|
||||
32 380 8 no zeros 2 9
|
||||
33 388 4 always zero 2 9
|
||||
34 392 4 table\-lookup 12 0
|
||||
35 396 4 no zeros, zerofill(1) 13 9
|
||||
36 400 4 no zeros, zerofill(1) 2 9
|
||||
37 404 1 2 9
|
||||
38 405 4 no zeros 2 9
|
||||
39 409 4 always zero 2 9
|
||||
40 413 4 no zeros 2 9
|
||||
41 417 4 always zero 2 9
|
||||
42 421 4 no zeros 2 9
|
||||
43 425 4 always zero 2 9
|
||||
44 429 20 no empty 3 9
|
||||
45 449 30 no empty 3 9
|
||||
46 479 1 14 4
|
||||
47 480 1 14 4
|
||||
48 481 79 no endspace, no empty 15 9
|
||||
49 560 79 no empty 2 9
|
||||
50 639 79 no empty 2 9
|
||||
51 718 79 no endspace 16 9
|
||||
52 797 8 no empty 2 9
|
||||
53 805 1 17 1
|
||||
54 806 1 3 9
|
||||
55 807 20 no empty 3 9
|
||||
56 827 4 no zeros, zerofill(2) 2 9
|
||||
57 831 4 no zeros, zerofill(1) 2 9
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmyisampack\fR
|
||||
displays the following kinds of information:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
normal
|
||||
.sp
|
||||
The number of columns for which no extra packing is used\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
empty\-space
|
||||
.sp
|
||||
The number of columns containing values that are only spaces\&. These occupy one bit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
empty\-zero
|
||||
.sp
|
||||
The number of columns containing values that are only binary zeros\&. These occupy one bit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
empty\-fill
|
||||
.sp
|
||||
The number of integer columns that do not occupy the full byte range of their type\&. These are changed to a smaller type\&. For example, a
|
||||
BIGINT
|
||||
column (eight bytes) can be stored as a
|
||||
TINYINT
|
||||
column (one byte) if all its values are in the range from
|
||||
\-128
|
||||
to
|
||||
127\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
pre\-space
|
||||
.sp
|
||||
The number of decimal columns that are stored with leading spaces\&. In this case, each value contains a count for the number of leading spaces\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
end\-space
|
||||
.sp
|
||||
The number of columns that have a lot of trailing spaces\&. In this case, each value contains a count for the number of trailing spaces\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
table\-lookup
|
||||
.sp
|
||||
The column had only a small number of different values, which were converted to an
|
||||
ENUM
|
||||
before Huffman compression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
zero
|
||||
.sp
|
||||
The number of columns for which all values are zero\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Original trees
|
||||
.sp
|
||||
The initial number of Huffman trees\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
After join
|
||||
.sp
|
||||
The number of distinct Huffman trees left after joining trees to save some header space\&.
|
||||
.RE
|
||||
.PP
|
||||
After a table has been compressed, the
|
||||
Field
|
||||
lines displayed by
|
||||
\fBmyisamchk \-dvv\fR
|
||||
include additional information about each column:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Type
|
||||
.sp
|
||||
The data type\&. The value may contain any of the following descriptors:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
constant
|
||||
.sp
|
||||
All rows have the same value\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
no endspace
|
||||
.sp
|
||||
Do not store endspace\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
no endspace, not_always
|
||||
.sp
|
||||
Do not store endspace and do not do endspace compression for all values\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
no endspace, no empty
|
||||
.sp
|
||||
Do not store endspace\&. Do not store empty values\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
table\-lookup
|
||||
.sp
|
||||
The column was converted to an
|
||||
ENUM\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
zerofill(\fIN\fR)
|
||||
.sp
|
||||
The most significant
|
||||
\fIN\fR
|
||||
bytes in the value are always 0 and are not stored\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
no zeros
|
||||
.sp
|
||||
Do not store zeros\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
always zero
|
||||
.sp
|
||||
Zero values are stored using one bit\&.
|
||||
.RE
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Huff tree
|
||||
.sp
|
||||
The number of the Huffman tree associated with the column\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Bits
|
||||
.sp
|
||||
The number of bits used in the Huffman tree\&.
|
||||
.RE
|
||||
.PP
|
||||
After you run
|
||||
\fBmyisampack\fR, you must run
|
||||
\fBmyisamchk\fR
|
||||
to re\-create any indexes\&. At this time, you can also sort the index blocks and create statistics needed for the MySQL optimizer to work more efficiently:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmyisamchk \-rq \-\-sort\-index \-\-analyze \fR\fB\fItbl_name\fR\fR\fB\&.MYI\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
After you have installed the packed table into the MySQL database directory, you should execute
|
||||
\fBmysqladmin flush\-tables\fR
|
||||
to force
|
||||
\fBmysqld\fR
|
||||
to start using the new table\&.
|
||||
.PP
|
||||
To unpack a packed table, use the
|
||||
\fB\-\-unpack\fR
|
||||
option to
|
||||
\fBmyisamchk\fR\&.
|
||||
.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/).
|
||||
514
build/lib/mysql/man/man1/mysql-stress-test.pl.1
Normal file
514
build/lib/mysql/man/man1/mysql-stress-test.pl.1
Normal file
@@ -0,0 +1,514 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql-stress-test.pl\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
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL\-STRESS\-TE" "1" "11/04/2013" "MySQL" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql-stress-test.pl
|
||||
.SH "NAME"
|
||||
mysql-stress-test.pl \- server stress test program
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql\-stress\-test\&.pl\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBmysql\-stress\-test\&.pl [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysql\-stress\-test\&.pl\fR
|
||||
Perl script performs stress\-testing of the MySQL server\&. (MySQL 5\&.0 and up only)
|
||||
.PP
|
||||
\fBmysql\-stress\-test\&.pl\fR
|
||||
requires a version of Perl that has been built with threads support\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql\-stress\-test\&.pl\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql\-stress\-test\&.pl [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysql\-stress\-test\&.pl\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: help option
|
||||
.\" help option: mysql-stress-test.pl
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: abort-on-error option
|
||||
.\" abort-on-error option: mysql-stress-test.pl
|
||||
\fB\-\-abort\-on\-error=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Causes the program to abort if an error with severity less than or equal to N was encountered\&. Set to 1 to abort on any error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: check-tests-file option
|
||||
.\" check-tests-file option: mysql-stress-test.pl
|
||||
\fB\-\-check\-tests\-file\fR
|
||||
.sp
|
||||
Periodically check the file that lists the tests to be run\&. If it has been modified, reread the file\&. This can be useful if you update the list of tests to be run during a stress test\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: cleanup option
|
||||
.\" cleanup option: mysql-stress-test.pl
|
||||
\fB\-\-cleanup\fR
|
||||
.sp
|
||||
Force cleanup of the working directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: log-error-details option
|
||||
.\" log-error-details option: mysql-stress-test.pl
|
||||
\fB\-\-log\-error\-details\fR
|
||||
.sp
|
||||
Log error details in the global error log file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: loop-count option
|
||||
.\" loop-count option: mysql-stress-test.pl
|
||||
\fB\-\-loop\-count=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
In sequential test mode, the number of loops to execute before exiting\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: mysqltest option
|
||||
.\" mysqltest option: mysql-stress-test.pl
|
||||
\fB\-\-mysqltest=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path name to the
|
||||
\fBmysqltest\fR
|
||||
program\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-database option
|
||||
.\" server-database option: mysql-stress-test.pl
|
||||
\fB\-\-server\-database=\fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
The database to use for the tests\&. The default is
|
||||
test\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-host option
|
||||
.\" server-host option: mysql-stress-test.pl
|
||||
\fB\-\-server\-host=\fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
The host name of the local host to use for making a TCP/IP connection to the local server\&. By default, the connection is made to
|
||||
localhost
|
||||
using a Unix socket file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-logs-dir option
|
||||
.\" server-logs-dir option: mysql-stress-test.pl
|
||||
\fB\-\-server\-logs\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
This option is required\&.
|
||||
\fIpath\fR
|
||||
is the directory where all client session logs will be stored\&. Usually this is the shared directory that is associated with the server used for testing\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-password option
|
||||
.\" server-password option: mysql-stress-test.pl
|
||||
\fB\-\-server\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-port option
|
||||
.\" server-port option: mysql-stress-test.pl
|
||||
\fB\-\-server\-port=\fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for connecting to the server\&. The default is 3306\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-socket option
|
||||
.\" server-socket option: mysql-stress-test.pl
|
||||
\fB\-\-server\-socket=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&. The default if
|
||||
/tmp/mysql\&.sock\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: server-user option
|
||||
.\" server-user option: mysql-stress-test.pl
|
||||
\fB\-\-server\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&. The default is
|
||||
root\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: sleep-time option
|
||||
.\" sleep-time option: mysql-stress-test.pl
|
||||
\fB\-\-sleep\-time=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
The delay in seconds between test executions\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-basedir option
|
||||
.\" stress-basedir option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
This option is required\&.
|
||||
\fIpath\fR
|
||||
is the working directory for the test run\&. It is used as the temporary location for result tracking during testing\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-datadir option
|
||||
.\" stress-datadir option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-datadir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory of data files to be used during testing\&. The default location is the
|
||||
data
|
||||
directory under the location given by the
|
||||
\fB\-\-stress\-suite\-basedir\fR
|
||||
option\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-init-file option
|
||||
.\" stress-init-file option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-init\-file[=\fR\fB\fIpath\fR\fR\fB]\fR
|
||||
.sp
|
||||
\fIfile_name\fR
|
||||
is the location of the file that contains the list of tests to be run once to initialize the database for the testing\&. If missing, the default file is
|
||||
stress_init\&.txt
|
||||
in the test suite directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-mode option
|
||||
.\" stress-mode option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-mode=\fR\fB\fImode\fR\fR
|
||||
.sp
|
||||
This option indicates the test order in stress\-test mode\&. The
|
||||
\fImode\fR
|
||||
value is either
|
||||
random
|
||||
to select tests in random order or
|
||||
seq
|
||||
to run tests in each thread in the order specified in the test list file\&. The default mode is
|
||||
random\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-suite-basedir option
|
||||
.\" stress-suite-basedir option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-suite\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
This option is required\&.
|
||||
\fIpath\fR
|
||||
is the directory that has the
|
||||
t
|
||||
and
|
||||
\fIr\fR
|
||||
subdirectories containing the test case and result files\&. This directory is also the default location of the
|
||||
stress\-test\&.txt
|
||||
file that contains the list of tests\&. (A different location can be specified with the
|
||||
\fB\-\-stress\-tests\-file\fR
|
||||
option\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: stress-tests-file option
|
||||
.\" stress-tests-file option: mysql-stress-test.pl
|
||||
\fB\-\-stress\-tests\-file[=\fR\fB\fIfile_name\fR\fR\fB]\fR
|
||||
.sp
|
||||
Use this option to run the stress tests\&.
|
||||
\fIfile_name\fR
|
||||
is the location of the file that contains the list of tests\&. If
|
||||
\fIfile_name\fR
|
||||
is omitted, the default file is
|
||||
stress\-test\&.txt
|
||||
in the stress suite directory\&. (See
|
||||
\fB\-\-stress\-suite\-basedir\fR\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: suite option
|
||||
.\" suite option: mysql-stress-test.pl
|
||||
\fB\-\-suite=\fR\fB\fIsuite_name\fR\fR
|
||||
.sp
|
||||
Run the named test suite\&. The default name is
|
||||
main
|
||||
(the regular test suite located in the
|
||||
mysql\-test
|
||||
directory)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: test-count option
|
||||
.\" test-count option: mysql-stress-test.pl
|
||||
\fB\-\-test\-count=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
The number of tests to execute before exiting\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: test-duration option
|
||||
.\" test-duration option: mysql-stress-test.pl
|
||||
\fB\-\-test\-duration=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
The duration of stress testing in seconds\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: threads option
|
||||
.\" threads option: mysql-stress-test.pl
|
||||
\fB\-\-threads=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
The number of threads\&. The default is 1\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql-stress-test.pl: verbose option
|
||||
.\" verbose option: mysql-stress-test.pl
|
||||
\fB\-\-verbose\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright \(co 2006, 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/).
|
||||
2567
build/lib/mysql/man/man1/mysql-test-run.pl.1
Normal file
2567
build/lib/mysql/man/man1/mysql-test-run.pl.1
Normal file
File diff suppressed because it is too large
Load Diff
3162
build/lib/mysql/man/man1/mysql.1
Normal file
3162
build/lib/mysql/man/man1/mysql.1
Normal file
File diff suppressed because it is too large
Load Diff
201
build/lib/mysql/man/man1/mysql.server.1
Normal file
201
build/lib/mysql/man/man1/mysql.server.1
Normal file
@@ -0,0 +1,201 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql.server\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 "\FBMYSQL\&.SERVER\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql.server
|
||||
.SH "NAME"
|
||||
mysql.server \- MySQL server startup script
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql\ {start|stop}\fR\ 'u
|
||||
\fBmysql {start|stop}\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
MySQL distributions on Unix include a script named
|
||||
\fBmysql\&.server\fR\&. It can be used on systems such as Linux and Solaris that use System V\-style run directories to start and stop system services\&. It is also used by the Mac OS X Startup Item for MySQL\&.
|
||||
.PP
|
||||
\fBmysql\&.server\fR
|
||||
can be found in the
|
||||
support\-files
|
||||
directory under your MySQL installation directory or in a MySQL source distribution\&.
|
||||
.PP
|
||||
If you use the Linux server RPM package (MySQL\-server\-\fIVERSION\fR\&.rpm), the
|
||||
\fBmysql\&.server\fR
|
||||
script will be installed in the
|
||||
/etc/init\&.d
|
||||
directory with the name
|
||||
mysql\&. You need not install it manually\&. See
|
||||
Section\ \&2.5.1, \(lqInstalling MySQL on Linux Using RPM Packages\(rq, for more information on the Linux RPM packages\&.
|
||||
.PP
|
||||
Some vendors provide RPM packages that install a startup script under a different name such as
|
||||
\fBmysqld\fR\&.
|
||||
.PP
|
||||
If you install MySQL from a source distribution or using a binary distribution format that does not install
|
||||
\fBmysql\&.server\fR
|
||||
automatically, you can install it manually\&. Instructions are provided in
|
||||
Section\ \&2.12.1.2, \(lqStarting and Stopping MySQL Automatically\(rq\&.
|
||||
.PP
|
||||
\fBmysql\&.server\fR
|
||||
reads options from the
|
||||
[mysql\&.server]
|
||||
and
|
||||
[mysqld]
|
||||
sections of option files\&. For backward compatibility, it also reads
|
||||
[mysql_server]
|
||||
sections, although you should rename such sections to
|
||||
[mysql\&.server]
|
||||
when using MySQL 5\&.1\&.
|
||||
.PP
|
||||
\fBmysql\&.server\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: basedir option
|
||||
.\" basedir option: mysql.server
|
||||
\fB\-\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL installation directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: datadir option
|
||||
.\" datadir option: mysql.server
|
||||
\fB\-\-datadir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL data directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: pid-file option
|
||||
.\" pid-file option: mysql.server
|
||||
\fB\-\-pid\-file=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
The path name of the file in which the server should write its process ID\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: service-startup-timeout option
|
||||
.\" service-startup-timeout option: mysql.server
|
||||
\fB\-\-service\-startup\-timeout=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
How long in seconds to wait for confirmation of server startup\&. If the server does not start within this time,
|
||||
\fBmysql\&.server\fR
|
||||
exits with an error\&. The default value is 900\&. A value of 0 means not to wait at all for startup\&. Negative values mean to wait forever (no timeout)\&. This option was added in MySQL 5\&.1\&.17\&. Before that, a value of 900 is always used\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: use-mysqld_safe option
|
||||
.\" use-mysqld_safe option: mysql.server
|
||||
\fB\-\-use\-mysqld_safe\fR
|
||||
.sp
|
||||
Use
|
||||
\fBmysqld_safe\fR
|
||||
to start the server\&. This is the default\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: use-manager option
|
||||
.\" use-manager option: mysql.server
|
||||
\fB\-\-use\-manager\fR
|
||||
.sp
|
||||
Use Instance Manager to start the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql.server: user option
|
||||
.\" user option: mysql.server
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The login user name to use for running
|
||||
\fBmysqld\fR\&.
|
||||
.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/).
|
||||
351
build/lib/mysql/man/man1/mysql_client_test.1
Normal file
351
build/lib/mysql/man/man1/mysql_client_test.1
Normal file
@@ -0,0 +1,351 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_client_test\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
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQL_CLIENT_TEST" "1" "11/04/2013" "MySQL" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_client_test
|
||||
.\" mysql_client_test_embedded
|
||||
.SH "NAME"
|
||||
mysql_client_test \- test client API
|
||||
.br
|
||||
mysql_client_test_embedded \- test client API for embedded server
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_client_test\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \&.\&.\&.\fR\ 'u
|
||||
\fBmysql_client_test [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fItest_name\fR\fR\fB] \&.\&.\&.\fR
|
||||
.HP \w'\fBmysql_client_test_embedded\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fItest_name\fR\fR\fB]\ \&.\&.\&.\fR\ 'u
|
||||
\fBmysql_client_test_embedded [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fItest_name\fR\fR\fB] \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysql_client_test\fR
|
||||
program is used for testing aspects of the MySQL client API that cannot be tested using
|
||||
\fBmysqltest\fR
|
||||
and its test language\&.
|
||||
\fBmysql_client_test_embedded\fR
|
||||
is similar but used for testing the embedded server\&. Both programs are run as part of the test suite\&.
|
||||
.PP
|
||||
The source code for the programs can be found in in
|
||||
tests/mysql_client_test\&.c
|
||||
in a source distribution\&. The program serves as a good source of examples illustrating how to use various features of the client API\&.
|
||||
.PP
|
||||
\fBmysql_client_test\fR
|
||||
is used in a test by the same name in the main tests suite of
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
but may also be run directly\&. Unlike the other programs listed here, it does not read an external description of what tests to run\&. Instead, all tests are coded into the program, which is written to cover all aspects of the C language API\&.
|
||||
.PP
|
||||
\fBmysql_client_test\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: help option
|
||||
.\" help option: mysql_client_test
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
\fB\-\-basedir=\fR\fB\fIdir_name\fR\fR,
|
||||
.\" mysql_client_test: basedir option
|
||||
.\" basedir option: mysql_client_test
|
||||
\fB\-b \fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The base directory for the tests\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-count=\fR\fB\fIcount\fR\fR,
|
||||
.\" mysql_client_test: count option
|
||||
.\" count option: mysql_client_test
|
||||
\fB\-t \fR\fB\fIcount\fR\fR
|
||||
.sp
|
||||
The number of times to execute the tests\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: database option
|
||||
.\" database option: mysql_client_test
|
||||
\fB\-\-database=\fR\fB\fIdb_name\fR\fR,
|
||||
\fB\-D \fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
The database to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: debug option
|
||||
.\" debug option: mysql_client_test
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-#[\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log if MySQL is built with debugging support\&. The default
|
||||
\fIdebug_options\fR
|
||||
value is
|
||||
\*(Aqd:t:o,/tmp/mysql_client_test\&.trace\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-getopt\-ll\-test=\fR\fB\fIoption\fR\fR,
|
||||
.\" mysql_client_test: getopt-ll-test option
|
||||
.\" getopt-ll-test option: mysql_client_test
|
||||
\fB\-g \fR\fB\fIoption\fR\fR
|
||||
.sp
|
||||
Option to use for testing bugs in the
|
||||
getopt
|
||||
library\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: host option
|
||||
.\" host option: mysql_client_test
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: password option
|
||||
.\" password option: mysql_client_test
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
|
||||
\fIcannot\fR
|
||||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
.\" mysql_client_test: password option
|
||||
.\" password option: mysql_client_test
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: port option
|
||||
.\" port option: mysql_client_test
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-server\-arg=\fR\fB\fIarg\fR\fR,
|
||||
.\" mysql_client_test: server-arg option
|
||||
.\" server-arg option: mysql_client_test
|
||||
\fB\-A \fR\fB\fIarg\fR\fR
|
||||
.sp
|
||||
Argument to send to the embedded server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-show\-tests\fR,
|
||||
\fB\-T\fR
|
||||
.sp
|
||||
Show all test names\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: silent option
|
||||
.\" silent option: mysql_client_test
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Be more silent\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: socket option
|
||||
.\" socket option: mysql_client_test
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The socket file to use when connecting to
|
||||
localhost
|
||||
(which is the default host)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-testcase\fR,
|
||||
\fB\-c\fR
|
||||
.sp
|
||||
The option is used when called from
|
||||
\fBmysql\-test\-run\&.pl\fR, so that
|
||||
\fBmysql_client_test\fR
|
||||
may optionally behave in a different way than if called manually, for example by skipping some tests\&. Currently, there is no difference in behavior but the option is included to make this possible\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_client_test: user option
|
||||
.\" user option: mysql_client_test
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-v \fR\fB\fIdir_name\fR\fR,
|
||||
.\" mysql_client_test: vardir option
|
||||
.\" vardir option: mysql_client_test
|
||||
\fB\-\-vardir=\fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The data directory for tests\&. The default is
|
||||
mysql\-test/var\&.
|
||||
.RE
|
||||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright \(co 2006, 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/).
|
||||
1
build/lib/mysql/man/man1/mysql_client_test_embedded.1
Normal file
1
build/lib/mysql/man/man1/mysql_client_test_embedded.1
Normal file
@@ -0,0 +1 @@
|
||||
.so man-gpl-tmp2/mysql_client_test.1
|
||||
245
build/lib/mysql/man/man1/mysql_config.1
Normal file
245
build/lib/mysql/man/man1/mysql_config.1
Normal file
@@ -0,0 +1,245 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_config\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 "\FBMYSQL_CONFIG\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_config
|
||||
.SH "NAME"
|
||||
mysql_config \- display options for compiling clients
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_config\ \fR\fB\fIoptions\fR\fR\ 'u
|
||||
\fBmysql_config \fR\fB\fIoptions\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_config\fR
|
||||
provides you with useful information for compiling your MySQL client and connecting it to MySQL\&. It is a shell script, so it is available only on Unix and Unix\-like systems\&.
|
||||
.PP
|
||||
\fBmysql_config\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: cflags option
|
||||
.\" cflags option: mysql_config
|
||||
\fB\-\-cflags\fR
|
||||
.sp
|
||||
Compiler flags to find include files and critical compiler flags and defines used when compiling the
|
||||
libmysqlclient
|
||||
library\&. The options returned are tied to the specific compiler that was used when the library was created and might clash with the settings for your own compiler\&. Use
|
||||
\fB\-\-include\fR
|
||||
for more portable options that contain only include paths\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: include option
|
||||
.\" include option: mysql_config
|
||||
\fB\-\-include\fR
|
||||
.sp
|
||||
Compiler options to find MySQL include files\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: libmysqld-libs option
|
||||
.\" libmysqld-libs option: mysql_config
|
||||
.\" mysql_config: embedded option
|
||||
.\" embedded option: mysql_config
|
||||
\fB\-\-libmysqld\-libs\fR,
|
||||
\fB\-\-embedded\fR
|
||||
.sp
|
||||
Libraries and options required to link with the MySQL embedded server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: libs option
|
||||
.\" libs option: mysql_config
|
||||
\fB\-\-libs\fR
|
||||
.sp
|
||||
Libraries and options required to link with the MySQL client library\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: libs_r option
|
||||
.\" libs_r option: mysql_config
|
||||
\fB\-\-libs_r\fR
|
||||
.sp
|
||||
Libraries and options required to link with the thread\-safe MySQL client library\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: plugindir option
|
||||
.\" plugindir option: mysql_config
|
||||
\fB\-\-plugindir\fR
|
||||
.sp
|
||||
The default plugin directory path name, defined when configuring MySQL\&. This option was added in MySQL 5\&.1\&.24\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: port option
|
||||
.\" port option: mysql_config
|
||||
\fB\-\-port\fR
|
||||
.sp
|
||||
The default TCP/IP port number, defined when configuring MySQL\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: socket option
|
||||
.\" socket option: mysql_config
|
||||
\fB\-\-socket\fR
|
||||
.sp
|
||||
The default Unix socket file, defined when configuring MySQL\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_config: version option
|
||||
.\" version option: mysql_config
|
||||
\fB\-\-version\fR
|
||||
.sp
|
||||
Version number for the MySQL distribution\&.
|
||||
.RE
|
||||
.PP
|
||||
If you invoke
|
||||
\fBmysql_config\fR
|
||||
with no options, it displays a list of all options that it supports, and their values:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_config\fR
|
||||
Usage: /usr/local/mysql/bin/mysql_config [options]
|
||||
Options:
|
||||
\-\-cflags [\-I/usr/local/mysql/include/mysql \-mcpu=pentiumpro]
|
||||
\-\-include [\-I/usr/local/mysql/include/mysql]
|
||||
\-\-libs [\-L/usr/local/mysql/lib/mysql \-lmysqlclient \-lz
|
||||
\-lz \-lcrypt \-lnsl \-lm]
|
||||
\-\-libs_r [\-L/usr/local/mysql/lib/mysql \-lmysqlclient_r
|
||||
\-lz \-lpthread \-lcrypt \-lnsl \-lm \-lpthread]
|
||||
\-\-socket [/tmp/mysql\&.sock]
|
||||
\-\-port [3306]
|
||||
\-\-version [5\&.1\&.69]
|
||||
\-\-libmysqld\-libs [\-L/usr/local/mysql/lib/mysql \-lmysqld \-ldl
|
||||
\-lz \-lpthread \-lcrypt \-lnsl \-lm \-lpthread \-lrt]
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You can use
|
||||
\fBmysql_config\fR
|
||||
within a command line using backticks to include the output that it produces for a particular option\&. For example, to compile and link a MySQL client program, use
|
||||
\fBmysql_config\fR
|
||||
as follows:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBgcc \-c `mysql_config \-\-cflags` progname\&.c\fR
|
||||
shell> \fBgcc \-o progname progname\&.o `mysql_config \-\-libs`\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.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/).
|
||||
241
build/lib/mysql/man/man1/mysql_convert_table_format.1
Normal file
241
build/lib/mysql/man/man1/mysql_convert_table_format.1
Normal file
@@ -0,0 +1,241 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_convert_table_format\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 "\FBMYSQL_CONVERT_TAB" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_convert_table_format
|
||||
.SH "NAME"
|
||||
mysql_convert_table_format \- convert tables to use a given storage engine
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_convert_table_format\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIdb_name\fR\fR\ 'u
|
||||
\fBmysql_convert_table_format [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_convert_table_format\fR
|
||||
converts the tables in a database to use a particular storage engine (MyISAM
|
||||
by default)\&.
|
||||
\fBmysql_convert_table_format\fR
|
||||
is written in Perl and requires that the
|
||||
DBI
|
||||
and
|
||||
DBD::mysql
|
||||
Perl modules be installed (see
|
||||
Section\ \&2.15, \(lqPerl Installation Notes\(rq)\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_convert_table_format\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_convert_table_format [\fR\fB\fIoptions\fR\fR\fB]\fR\fB\fIdb_name\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The
|
||||
\fIdb_name\fR
|
||||
argument indicates the database containing the tables to be converted\&.
|
||||
.PP
|
||||
\fBmysql_convert_table_format\fR
|
||||
supports the options described in the following list\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: help option
|
||||
.\" help option: mysql_convert_table_format
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysql_convert_table_format: force option
|
||||
.\" force option: mysql_convert_table_format
|
||||
\fB\-\-force\fR
|
||||
.sp
|
||||
Continue even if errors occur\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: host option
|
||||
.\" host option: mysql_convert_table_format
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: password option
|
||||
.\" password option: mysql_convert_table_format
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: port option
|
||||
.\" port option: mysql_convert_table_format
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: socket option
|
||||
.\" socket option: mysql_convert_table_format
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: type option
|
||||
.\" type option: mysql_convert_table_format
|
||||
\fB\-\-type=\fR\fB\fIengine_name\fR\fR
|
||||
.sp
|
||||
Specify the storage engine that the tables should be converted to use\&. The default is
|
||||
MyISAM
|
||||
if this option is not given\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: user option
|
||||
.\" user option: mysql_convert_table_format
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: verbose option
|
||||
.\" verbose option: mysql_convert_table_format
|
||||
\fB\-\-verbose\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_convert_table_format: version option
|
||||
.\" version option: mysql_convert_table_format
|
||||
\fB\-\-version\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/).
|
||||
176
build/lib/mysql/man/man1/mysql_find_rows.1
Normal file
176
build/lib/mysql/man/man1/mysql_find_rows.1
Normal file
@@ -0,0 +1,176 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_find_rows\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 "\FBMYSQL_FIND_ROWS\F" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_find_rows
|
||||
.SH "NAME"
|
||||
mysql_find_rows \- extract SQL statements from files
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_find_rows\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIfile_name\fR\fR\fB\ \&.\&.\&.]\fR\ 'u
|
||||
\fBmysql_find_rows [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_find_rows\fR
|
||||
reads files containing SQL statements and extracts statements that match a given regular expression or that contain
|
||||
USE \fIdb_name\fR
|
||||
or
|
||||
SET
|
||||
statements\&. The utility was written for use with update log files (as used prior to MySQL 5\&.0) and as such expects statements to be terminated with semicolon (;) characters\&. It may be useful with other files that contain SQL statements as long as statements are terminated with semicolons\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_find_rows\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_find_rows [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Each
|
||||
\fIfile_name\fR
|
||||
argument should be the name of file containing SQL statements\&. If no file names are given,
|
||||
\fBmysql_find_rows\fR
|
||||
reads the standard input\&.
|
||||
.PP
|
||||
Examples:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
mysql_find_rows \-\-regexp=problem_table \-\-rows=20 < update\&.log
|
||||
mysql_find_rows \-\-regexp=problem_table update\-log\&.1 update\-log\&.2
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysql_find_rows\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_find_rows: help option
|
||||
.\" help option: mysql_find_rows
|
||||
\fB\-\-help\fR,
|
||||
\fB\-\-Information\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
|
||||
.\}
|
||||
.\" mysql_find_rows: regexp option
|
||||
.\" regexp option: mysql_find_rows
|
||||
\fB\-\-regexp=\fR\fB\fIpattern\fR\fR
|
||||
.sp
|
||||
Display queries that match the pattern\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_find_rows: rows option
|
||||
.\" rows option: mysql_find_rows
|
||||
\fB\-\-rows=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Quit after displaying
|
||||
\fIN\fR
|
||||
queries\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_find_rows: skip-use-db option
|
||||
.\" skip-use-db option: mysql_find_rows
|
||||
\fB\-\-skip\-use\-db\fR
|
||||
.sp
|
||||
Do not include
|
||||
USE \fIdb_name\fR
|
||||
statements in the output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_find_rows: start_row option
|
||||
.\" start_row option: mysql_find_rows
|
||||
\fB\-\-start_row=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Start output from this row\&.
|
||||
.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/).
|
||||
86
build/lib/mysql/man/man1/mysql_fix_extensions.1
Normal file
86
build/lib/mysql/man/man1/mysql_fix_extensions.1
Normal file
@@ -0,0 +1,86 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_fix_extensions\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 "\FBMYSQL_FIX_EXTENSI" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_fix_extensions
|
||||
.SH "NAME"
|
||||
mysql_fix_extensions \- normalize table file name extensions
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_fix_extensions\ \fR\fB\fIdata_dir\fR\fR\ 'u
|
||||
\fBmysql_fix_extensions \fR\fB\fIdata_dir\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_fix_extensions\fR
|
||||
converts the extensions for
|
||||
MyISAM
|
||||
(or
|
||||
ISAM) table files to their canonical forms\&. It looks for files with extensions matching any lettercase variant of
|
||||
\&.frm,
|
||||
\&.myd,
|
||||
\&.myi,
|
||||
\&.isd, and
|
||||
\&.ism
|
||||
and renames them to have extensions of
|
||||
\&.frm,
|
||||
\&.MYD,
|
||||
\&.MYI,
|
||||
\&.ISD, and
|
||||
\&.ISM, respectively\&. This can be useful after transferring the files from a system with case\-insensitive file names (such as Windows) to a system with case\-sensitive file names\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_fix_extensions\fR
|
||||
like this, where
|
||||
\fIdata_dir\fR
|
||||
is the path name to the MySQL data directory\&.
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_fix_extensions \fR\fB\fIdata_dir\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.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/).
|
||||
184
build/lib/mysql/man/man1/mysql_fix_privilege_tables.1
Normal file
184
build/lib/mysql/man/man1/mysql_fix_privilege_tables.1
Normal file
@@ -0,0 +1,184 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_fix_privilege_tables\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 "\FBMYSQL_FIX_PRIVILE" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_fix_privilege_tables
|
||||
.\" upgrading: grant tables
|
||||
.\" grant tables: upgrading
|
||||
.SH "NAME"
|
||||
mysql_fix_privilege_tables \- upgrade MySQL system tables
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_fix_privilege_tables\ \-\-password=\fR\fB\fIroot_password\fR\fR\ 'u
|
||||
\fBmysql_fix_privilege_tables \-\-password=\fR\fB\fIroot_password\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
In MySQL 5\&.1\&.7,
|
||||
\fBmysql_fix_privilege_tables\fR
|
||||
was superseded by
|
||||
\fBmysql_upgrade\fR, which should be used instead\&. See
|
||||
\fBmysql_upgrade\fR(1)\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
Some releases of MySQL introduce changes to the structure of the system tables in the
|
||||
mysql
|
||||
database to add new privileges or support new features\&. When you update to a new version of MySQL, you should update your system tables as well to make sure that their structure is up to date\&. Otherwise, there might be capabilities that you cannot take advantage of\&.
|
||||
.PP
|
||||
\fBmysql_fix_privilege_tables\fR
|
||||
is an older script that previously was used to upgrade the system tables in the
|
||||
mysql
|
||||
database after a MySQL upgrade\&.
|
||||
.PP
|
||||
Before running
|
||||
\fBmysql_fix_privilege_tables\fR, make a backup of your
|
||||
mysql
|
||||
database\&.
|
||||
.PP
|
||||
On Unix or Unix\-like systems, update the system tables by running the
|
||||
\fBmysql_fix_privilege_tables\fR
|
||||
script:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_fix_privilege_tables\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You must run this script while the server is running\&. It attempts to connect to the server running on the local host as
|
||||
root\&. If your
|
||||
root
|
||||
account requires a password, indicate the password on the command line like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_fix_privilege_tables \-\-password=\fR\fB\fIroot_password\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The
|
||||
\fBmysql_fix_privilege_tables\fR
|
||||
script performs any actions necessary to convert your system tables to the current format\&. You might see some
|
||||
Duplicate column name
|
||||
warnings as it runs; you can ignore them\&.
|
||||
.PP
|
||||
After running the script, stop the server and restart it so that any changes made to the system tables take effect\&.
|
||||
.PP
|
||||
On Windows systems, MySQL distributions include a
|
||||
mysql_fix_privilege_tables\&.sql
|
||||
SQL script that you can run using the
|
||||
\fBmysql\fR
|
||||
client\&. For example, if your MySQL installation is located at
|
||||
C:\eProgram Files\eMySQL\eMySQL Server 5\&.1, the commands look like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
C:\e> \fBcd "C:\eProgram Files\eMySQL\eMySQL Server 5\&.1"\fR
|
||||
C:\e> \fBbin\emysql \-u root \-p mysql\fR
|
||||
mysql> \fBSOURCE share/mysql_fix_privilege_tables\&.sql\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
Prior to version 5\&.1\&.17, the
|
||||
mysql_fix_privilege_tables\&.sql
|
||||
script is found in the
|
||||
scripts
|
||||
directory\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
The
|
||||
\fBmysql\fR
|
||||
command will prompt you for the
|
||||
root
|
||||
password; enter it when prompted\&.
|
||||
.PP
|
||||
If your installation is located in some other directory, adjust the path names appropriately\&.
|
||||
.PP
|
||||
As with the Unix procedure, you might see some
|
||||
Duplicate column name
|
||||
warnings as
|
||||
\fBmysql\fR
|
||||
processes the statements in the
|
||||
mysql_fix_privilege_tables\&.sql
|
||||
script; you can ignore them\&.
|
||||
.PP
|
||||
After running the script, stop the server and restart it\&.
|
||||
.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/).
|
||||
310
build/lib/mysql/man/man1/mysql_install_db.1
Normal file
310
build/lib/mysql/man/man1/mysql_install_db.1
Normal file
@@ -0,0 +1,310 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_install_db\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 "\FBMYSQL_INSTALL_DB\" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_install_db
|
||||
.SH "NAME"
|
||||
mysql_install_db \- initialize MySQL data directory
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_install_db\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBmysql_install_db [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_install_db\fR
|
||||
initializes the MySQL data directory and creates the system tables that it contains, if they do not exist\&.
|
||||
\fBmysql_install_db\fR
|
||||
is a shell script and is available only on Unix platforms\&.
|
||||
.PP
|
||||
To invoke
|
||||
\fBmysql_install_db\fR, use the following syntax:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_install_db [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Because the MySQL server,
|
||||
\fBmysqld\fR, needs to access the data directory when it runs later, you should either run
|
||||
\fBmysql_install_db\fR
|
||||
from the same system account that will be used for running
|
||||
\fBmysqld\fR
|
||||
or run it as
|
||||
root
|
||||
and use the
|
||||
\fB\-\-user\fR
|
||||
option to indicate the user name that
|
||||
\fBmysqld\fR
|
||||
will run as\&. It might be necessary to specify other options such as
|
||||
\fB\-\-basedir\fR
|
||||
or
|
||||
\fB\-\-datadir\fR
|
||||
if
|
||||
\fBmysql_install_db\fR
|
||||
does not use the correct locations for the installation directory or data directory\&. For example:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBbin/mysql_install_db \-\-user=mysql \e\fR
|
||||
\fB\-\-basedir=/opt/mysql/mysql \e\fR
|
||||
\fB\-\-datadir=/opt/mysql/mysql/data\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysql_install_db\fR
|
||||
needs to invoke
|
||||
\fBmysqld\fR
|
||||
with the
|
||||
\fB\-\-bootstrap\fR
|
||||
and
|
||||
\fB\-\-skip\-grant\-tables\fR
|
||||
options\&. If MySQL was configured with the
|
||||
\fB\-\-disable\-grant\-options\fR
|
||||
option,
|
||||
\fB\-\-bootstrap\fR
|
||||
and
|
||||
\fB\-\-skip\-grant\-tables\fR
|
||||
will be disabled (see
|
||||
Section\ \&2.11.4, \(lqMySQL Source-Configuration Options\(rq)\&. To handle this, set the
|
||||
MYSQLD_BOOTSTRAP
|
||||
environment variable to the full path name of a server that has all options enabled\&.
|
||||
\fBmysql_install_db\fR
|
||||
will use that server\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
If you have set a custom
|
||||
TMPDIR
|
||||
environment variable when performing the installation, and the specified directory is not accessible,
|
||||
\fBmysql_install_db\fR
|
||||
may fail\&. If so, unset
|
||||
TMPDIR
|
||||
or set
|
||||
TMPDIR
|
||||
to point to the system temporary directory (usually
|
||||
/tmp)\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
\fBmysql_install_db\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysql_install_db]
|
||||
group of an option file\&. (Options that are common to
|
||||
\fBmysqld\fR
|
||||
can also be specified in the
|
||||
[mysqld]
|
||||
group\&.) Other options are passed to
|
||||
\fBmysqld\fR\&. For information about option files, see
|
||||
Section\ \&4.2.3.3, \(lqUsing Option Files\(rq\&.
|
||||
\fBmysql_install_db\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: basedir option
|
||||
.\" basedir option: mysql_install_db
|
||||
\fB\-\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL installation directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: datadir option
|
||||
.\" datadir option: mysql_install_db
|
||||
.\" mysql_install_db: ldata option
|
||||
.\" ldata option: mysql_install_db
|
||||
\fB\-\-datadir=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-\-ldata=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL data directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: force option
|
||||
.\" force option: mysql_install_db
|
||||
\fB\-\-force\fR
|
||||
.sp
|
||||
Cause
|
||||
\fBmysql_install_db\fR
|
||||
to run even if DNS does not work\&. Grant table entries that normally use host names will use IP addresses\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: rpm option
|
||||
.\" rpm option: mysql_install_db
|
||||
\fB\-\-rpm\fR
|
||||
.sp
|
||||
For internal use\&. This option is used during the MySQL installation process for install operations performed using RPM packages\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: skip-name-resolve option
|
||||
.\" skip-name-resolve option: mysql_install_db
|
||||
\fB\-\-skip\-name\-resolve\fR
|
||||
.sp
|
||||
Use IP addresses rather than host names when creating grant table entries\&. This option can be useful if your DNS does not work\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: srcdir option
|
||||
.\" srcdir option: mysql_install_db
|
||||
\fB\-\-srcdir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For internal use\&. This option specifies the directory under which
|
||||
\fBmysql_install_db\fR
|
||||
looks for support files such as the error message file and the file for populating the help tables\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: user option
|
||||
.\" user option: mysql_install_db
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The system (login) user name to use for running
|
||||
\fBmysqld\fR\&. Files and directories created by
|
||||
\fBmysqld\fR
|
||||
will be owned by this user\&. You must be
|
||||
root
|
||||
to use this option\&. By default,
|
||||
\fBmysqld\fR
|
||||
runs using your current login name and files and directories that it creates will be owned by you\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: verbose option
|
||||
.\" verbose option: mysql_install_db
|
||||
\fB\-\-verbose\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_install_db: windows option
|
||||
.\" windows option: mysql_install_db
|
||||
\fB\-\-windows\fR
|
||||
.sp
|
||||
For internal use\&. This option is used for creating Windows distributions\&.
|
||||
.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/).
|
||||
126
build/lib/mysql/man/man1/mysql_secure_installation.1
Normal file
126
build/lib/mysql/man/man1/mysql_secure_installation.1
Normal file
@@ -0,0 +1,126 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_secure_installation\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 "\FBMYSQL_SECURE_INST" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_secure_installation
|
||||
.SH "NAME"
|
||||
mysql_secure_installation \- improve MySQL installation security
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_secure_installation\fR\ 'u
|
||||
\fBmysql_secure_installation\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
This program enables you to improve the security of your MySQL installation in the following ways:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
You can set a password for
|
||||
root
|
||||
accounts\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
You can remove
|
||||
root
|
||||
accounts that are accessible from outside the local host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
You can remove anonymous\-user accounts\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
You can remove the
|
||||
test
|
||||
database (which by default can be accessed by all users, even anonymous users), and privileges that permit anyone to access databases with names that start with
|
||||
test_\&.
|
||||
.RE
|
||||
.PP
|
||||
\fBmysql_secure_installation\fR
|
||||
helps you implement security recommendations similar to those described at
|
||||
Section\ \&2.12.2, \(lqSecuring the Initial MySQL Accounts\(rq\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_secure_installation\fR
|
||||
without arguments:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_secure_installation\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
When executed, the script prompts you to determine which actions to perform\&.
|
||||
.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/).
|
||||
188
build/lib/mysql/man/man1/mysql_setpermission.1
Normal file
188
build/lib/mysql/man/man1/mysql_setpermission.1
Normal file
@@ -0,0 +1,188 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_setpermission\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 "\FBMYSQL_SETPERMISSI" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_setpermission
|
||||
.SH "NAME"
|
||||
mysql_setpermission \- interactively set permissions in grant tables
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_setpermission\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_setpermission\fR
|
||||
is a Perl script that was originally written and contributed by Luuk de Boer\&. It interactively sets permissions in the MySQL grant tables\&.
|
||||
\fBmysql_setpermission\fR
|
||||
is written in Perl and requires that the
|
||||
DBI
|
||||
and
|
||||
DBD::mysql
|
||||
Perl modules be installed (see
|
||||
Section\ \&2.15, \(lqPerl Installation Notes\(rq)\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_setpermission\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_setpermission [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fIoptions\fR
|
||||
should be either
|
||||
\fB\-\-help\fR
|
||||
to display the help message, or options that indicate how to connect to the MySQL server\&. The account used when you connect determines which permissions you have when attempting to modify existing permissions in the grant tables\&.
|
||||
.PP
|
||||
\fBmysql_setpermissions\fR
|
||||
also reads options from the
|
||||
[client]
|
||||
and
|
||||
[perl]
|
||||
groups in the
|
||||
\&.my\&.cnf
|
||||
file in your home directory, if the file exists\&.
|
||||
.PP
|
||||
\fBmysql_setpermission\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_setpermission: help option
|
||||
.\" help option: mysql_setpermission
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysql_setpermission: host option
|
||||
.\" host option: mysql_setpermission
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_setpermission: password option
|
||||
.\" password option: mysql_setpermission
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_setpermission: port option
|
||||
.\" port option: mysql_setpermission
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_setpermission: socket option
|
||||
.\" socket option: mysql_setpermission
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_setpermission: user option
|
||||
.\" user option: mysql_setpermission
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.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/).
|
||||
138
build/lib/mysql/man/man1/mysql_tzinfo_to_sql.1
Normal file
138
build/lib/mysql/man/man1/mysql_tzinfo_to_sql.1
Normal file
@@ -0,0 +1,138 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_tzinfo_to_sql\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 "\FBMYSQL_TZINFO_TO_S" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_tzinfo_to_sql
|
||||
.\" time zone tables
|
||||
.SH "NAME"
|
||||
mysql_tzinfo_to_sql \- load the time zone tables
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_tzinfo_to_sql\ \fR\fB\fIarguments\fR\fR\ 'u
|
||||
\fBmysql_tzinfo_to_sql \fR\fB\fIarguments\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
program loads the time zone tables in the
|
||||
mysql
|
||||
database\&. It is used on systems that have a
|
||||
zoneinfo
|
||||
database (the set of files describing time zones)\&. Examples of such systems are Linux, FreeBSD, Solaris, and Mac OS X\&. One likely location for these files is the
|
||||
/usr/share/zoneinfo
|
||||
directory (/usr/share/lib/zoneinfo
|
||||
on Solaris)\&. If your system does not have a zoneinfo database, you can use the downloadable package described in
|
||||
Section\ \&10.6, \(lqMySQL Server Time Zone Support\(rq\&.
|
||||
.PP
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
can be invoked several ways:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_tzinfo_to_sql \fR\fB\fItz_dir\fR\fR
|
||||
shell> \fBmysql_tzinfo_to_sql \fR\fB\fItz_file tz_name\fR\fR
|
||||
shell> \fBmysql_tzinfo_to_sql \-\-leap \fR\fB\fItz_file\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
For the first invocation syntax, pass the zoneinfo directory path name to
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
and send the output into the
|
||||
\fBmysql\fR
|
||||
program\&. For example:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_tzinfo_to_sql /usr/share/zoneinfo | mysql \-u root mysql\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
reads your system\*(Aqs time zone files and generates SQL statements from them\&.
|
||||
\fBmysql\fR
|
||||
processes those statements to load the time zone tables\&.
|
||||
.PP
|
||||
The second syntax causes
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
to load a single time zone file
|
||||
\fItz_file\fR
|
||||
that corresponds to a time zone name
|
||||
\fItz_name\fR:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_tzinfo_to_sql \fR\fB\fItz_file\fR\fR\fB \fR\fB\fItz_name\fR\fR\fB | mysql \-u root mysql\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
If your time zone needs to account for leap seconds, invoke
|
||||
\fBmysql_tzinfo_to_sql\fR
|
||||
using the third syntax, which initializes the leap second information\&.
|
||||
\fItz_file\fR
|
||||
is the name of your time zone file:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_tzinfo_to_sql \-\-leap \fR\fB\fItz_file\fR\fR\fB | mysql \-u root mysql\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
After running
|
||||
\fBmysql_tzinfo_to_sql\fR, it is best to restart the server so that it does not continue to use any previously cached time zone data\&.
|
||||
.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/).
|
||||
424
build/lib/mysql/man/man1/mysql_upgrade.1
Normal file
424
build/lib/mysql/man/man1/mysql_upgrade.1
Normal file
@@ -0,0 +1,424 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_upgrade\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 "\FBMYSQL_UPGRADE\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_upgrade
|
||||
.\" upgrading MySQL
|
||||
.\" MySQL: upgrading
|
||||
.SH "NAME"
|
||||
mysql_upgrade \- check and upgrade MySQL tables
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_upgrade\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBmysql_upgrade [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
examines all tables in all databases for incompatibilities with the current version of MySQL Server\&.
|
||||
\fBmysql_upgrade\fR
|
||||
also upgrades the system tables so that you can take advantage of new privileges or capabilities that might have been added\&.
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
should be executed each time you upgrade MySQL\&. It supersedes the older
|
||||
\fBmysql_fix_privilege_tables\fR
|
||||
script, which should no longer be used\&.
|
||||
.PP
|
||||
If
|
||||
\fBmysql_upgrade\fR
|
||||
finds that a table has a possible incompatibility, it performs a table check and, if problems are found, attempts a table repair\&. If the table cannot be repaired, see
|
||||
Section\ \&2.13.4, \(lqRebuilding or Repairing Tables or Indexes\(rq
|
||||
for manual table repair strategies\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
On Windows Server 2008, Vista, and newer, you must run
|
||||
\fBmysql_upgrade\fR
|
||||
with administrator privileges\&. You can do this by running a Command Prompt as Administrator and running the command\&. Failure to do so may result in the upgrade failing to execute correctly\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBCaution\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
You should always back up your current MySQL installation
|
||||
\fIbefore\fR
|
||||
performing an upgrade\&. See
|
||||
Section\ \&7.2, \(lqDatabase Backup Methods\(rq\&.
|
||||
.PP
|
||||
Some upgrade incompatibilities may require special handling before you upgrade your MySQL installation and run
|
||||
\fBmysql_upgrade\fR\&. See
|
||||
Section\ \&2.13.1, \(lqUpgrading MySQL\(rq, for instructions on determining whether any such incompatibilities apply to your installation and how to handle them\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
To use
|
||||
\fBmysql_upgrade\fR, make sure that the server is running, and then invoke it like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_upgrade [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
After running
|
||||
\fBmysql_upgrade\fR, stop the server and restart it so that any changes made to the system tables take effect\&.
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
executes the following commands to check and repair tables and to upgrade the system tables:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
mysqlcheck \-\-all\-databases \-\-check\-upgrade \-\-auto\-repair
|
||||
mysql < \fIfix_priv_tables\fR
|
||||
mysqlcheck \-\-all\-databases \-\-check\-upgrade \-\-fix\-db\-names \-\-fix\-table\-names
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Notes about the preceding commands:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Because
|
||||
\fBmysql_upgrade\fR
|
||||
invokes
|
||||
\fBmysqlcheck\fR
|
||||
with the
|
||||
\fB\-\-all\-databases\fR
|
||||
option, it processes all tables in all databases, which might take a long time to complete\&. Each table is locked and therefore unavailable to other sessions while it is being processed\&. Check and repair operations can be time\-consuming, particularly for large tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
For details about what checks the
|
||||
\fB\-\-check\-upgrade\fR
|
||||
option entails, see the description of the
|
||||
FOR UPGRADE
|
||||
option of the
|
||||
CHECK TABLE
|
||||
statement (see
|
||||
Section\ \&13.7.2.3, \(lqCHECK TABLE Syntax\(rq)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fIfix_priv_tables\fR
|
||||
represents a script generated internally by
|
||||
\fBmysql_upgrade\fR
|
||||
that contains SQL statements to upgrade the tables in the
|
||||
mysql
|
||||
database\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Prior to MySQL 5\&.1\&.31,
|
||||
\fBmysql_upgrade\fR
|
||||
does not run the second
|
||||
\fBmysqlcheck\fR
|
||||
command, which is necessary to re\-encode database or table names that contain nonalphanumeric characters\&. (They still appear after the upgrade with the
|
||||
#mysql50#
|
||||
prefix described in
|
||||
Section\ \&9.2.3, \(lqMapping of Identifiers to File Names\(rq\&.) If you have such database or table names, execute the second
|
||||
\fBmysqlcheck\fR
|
||||
command manually after executing
|
||||
\fBmysql_upgrade\fR\&.
|
||||
.RE
|
||||
.PP
|
||||
All checked and repaired tables are marked with the current MySQL version number\&. This ensures that next time you run
|
||||
\fBmysql_upgrade\fR
|
||||
with the same version of the server, it can tell whether there is any need to check or repair the table again\&.
|
||||
.\" mysql_upgrade_info file: mysql_upgrade
|
||||
.\" mysql_upgrade: mysql_upgrade_info file
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
also saves the MySQL version number in a file named
|
||||
mysql_upgrade_info
|
||||
in the data directory\&. This is used to quickly check whether all tables have been checked for this release so that table\-checking can be skipped\&. To ignore this file and perform the check regardless, use the
|
||||
\fB\-\-force\fR
|
||||
option\&.
|
||||
.PP
|
||||
If you install MySQL from RPM packages on Linux, you must install the server and client RPMs\&.
|
||||
\fBmysql_upgrade\fR
|
||||
is included in the server RPM but requires the client RPM because the latter includes
|
||||
\fBmysqlcheck\fR\&. (See
|
||||
Section\ \&2.5.1, \(lqInstalling MySQL on Linux Using RPM Packages\(rq\&.)
|
||||
.PP
|
||||
In MySQL 5\&.1\&.7,
|
||||
\fBmysql_upgrade \fR
|
||||
was added as a shell script and worked only for Unix systems\&. As of MySQL 5\&.1\&.10,
|
||||
\fBmysql_upgrade\fR
|
||||
is an executable binary and is available on all systems\&.
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
does not upgrade the contents of the help tables\&. For upgrade instructions, see
|
||||
Section\ \&5.1.9, \(lqServer-Side Help\(rq\&.
|
||||
.PP
|
||||
\fBmysql_upgrade\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysql_upgrade]
|
||||
and
|
||||
[client]
|
||||
groups of an option file\&. Other options are passed to
|
||||
\fBmysqlcheck\fR\&. For example, it might be necessary to specify the
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
option\&.
|
||||
\fBmysql_upgrade\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: help option
|
||||
.\" help option: mysql_upgrade
|
||||
\fB\-\-help\fR
|
||||
.sp
|
||||
Display a short help message and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: basedir option
|
||||
.\" basedir option: mysql_upgrade
|
||||
\fB\-\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL installation directory\&. This option is accepted for backward compatibility but ignored\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: datadir option
|
||||
.\" datadir option: mysql_upgrade
|
||||
\fB\-\-datadir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the data directory\&. This option is accepted for backward compatibility but ignored\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: debug-check option
|
||||
.\" debug-check option: mysql_upgrade
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: debug-info option
|
||||
.\" debug-info option: mysql_upgrade
|
||||
\fB\-\-debug\-info\fR,
|
||||
\fB\-T\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: force option
|
||||
.\" force option: mysql_upgrade
|
||||
\fB\-\-force\fR
|
||||
.sp
|
||||
Ignore the
|
||||
mysql_upgrade_info
|
||||
file and force execution of
|
||||
\fBmysqlcheck\fR
|
||||
even if
|
||||
\fBmysql_upgrade\fR
|
||||
has already been executed for the current version of MySQL\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: tmpdir option
|
||||
.\" tmpdir option: mysql_upgrade
|
||||
\fB\-\-tmpdir=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-t \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path name of the directory to use for creating temporary files\&. This option was added in MySQL 5\&.1\&.25\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: user option
|
||||
.\" user option: mysql_upgrade
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&. The default user name is
|
||||
root\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: verbose option
|
||||
.\" verbose option: mysql_upgrade
|
||||
\fB\-\-verbose\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_upgrade: write-binlog option
|
||||
.\" write-binlog option: mysql_upgrade
|
||||
\fB\-\-write\-binlog\fR
|
||||
.sp
|
||||
Cause binary logging to be enabled while
|
||||
\fBmysql_upgrade\fR
|
||||
runs\&. This is the default behavior; to disable binary logging during the upgrade, use the inverse of this option (that is, start the program with
|
||||
\fB\-\-skip\-write\-binlog\fR)\&.
|
||||
.sp
|
||||
This option was introduced in MySQL 5\&.1\&.40\&.
|
||||
.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/).
|
||||
145
build/lib/mysql/man/man1/mysql_waitpid.1
Normal file
145
build/lib/mysql/man/man1/mysql_waitpid.1
Normal file
@@ -0,0 +1,145 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_waitpid\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 "\FBMYSQL_WAITPID\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_waitpid
|
||||
.SH "NAME"
|
||||
mysql_waitpid \- kill process and wait for its termination
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_waitpid\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIpid\fR\fR\fB\ \fR\fB\fIwait_time\fR\fR\ 'u
|
||||
\fBmysql_waitpid [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIpid\fR\fR\fB \fR\fB\fIwait_time\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_waitpid\fR
|
||||
signals a process to terminate and waits for the process to exit\&. It uses the
|
||||
kill()
|
||||
system call and Unix signals, so it runs on Unix and Unix\-like systems\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_waitpid\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_waitpid [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIpid\fR\fR\fB \fR\fB\fIwait_time\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysql_waitpid\fR
|
||||
sends signal 0 to the process identified by
|
||||
\fIpid\fR
|
||||
and waits up to
|
||||
\fIwait_time\fR
|
||||
seconds for the process to terminate\&.
|
||||
\fIpid\fR
|
||||
and
|
||||
\fIwait_time\fR
|
||||
must be positive integers\&.
|
||||
.PP
|
||||
If process termination occurs within the wait time or the process does not exist,
|
||||
\fBmysql_waitpid\fR
|
||||
returns 0\&. Otherwise, it returns 1\&.
|
||||
.PP
|
||||
If the
|
||||
kill()
|
||||
system call cannot handle signal 0,
|
||||
\fBmysql_waitpid()\fR
|
||||
uses signal 1 instead\&.
|
||||
.PP
|
||||
\fBmysql_waitpid\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_waitpid: help option
|
||||
.\" help option: mysql_waitpid
|
||||
\fB\-\-help\fR,
|
||||
\fB\-?\fR,
|
||||
\fB\-I\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
|
||||
.\}
|
||||
.\" mysql_waitpid: verbose option
|
||||
.\" verbose option: mysql_waitpid
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Display a warning if signal 0 could not be used and signal 1 is used instead\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysql_waitpid: version option
|
||||
.\" version option: mysql_waitpid
|
||||
\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/).
|
||||
141
build/lib/mysql/man/man1/mysql_zap.1
Normal file
141
build/lib/mysql/man/man1/mysql_zap.1
Normal file
@@ -0,0 +1,141 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysql_zap\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 "\FBMYSQL_ZAP\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysql_zap
|
||||
.SH "NAME"
|
||||
mysql_zap \- kill processes that match a pattern
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysql_zap\ [\-\fR\fB\fIsignal\fR\fR\fB]\ [\-?Ift]\ \fR\fB\fIpattern\fR\fR\ 'u
|
||||
\fBmysql_zap [\-\fR\fB\fIsignal\fR\fR\fB] [\-?Ift] \fR\fB\fIpattern\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysql_zap\fR
|
||||
kills processes that match a pattern\&. It uses the
|
||||
\fBps\fR
|
||||
command and Unix signals, so it runs on Unix and Unix\-like systems\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysql_zap\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql_zap [\-\fR\fB\fIsignal\fR\fR\fB] [\-?Ift] \fR\fB\fIpattern\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
A process matches if its output line from the
|
||||
\fBps\fR
|
||||
command contains the pattern\&. By default,
|
||||
\fBmysql_zap\fR
|
||||
asks for confirmation for each process\&. Respond
|
||||
y
|
||||
to kill the process, or
|
||||
q
|
||||
to exit
|
||||
\fBmysql_zap\fR\&. For any other response,
|
||||
\fBmysql_zap\fR
|
||||
does not attempt to kill the process\&.
|
||||
.PP
|
||||
If the
|
||||
\fB\-\fR\fB\fIsignal\fR\fR
|
||||
option is given, it specifies the name or number of the signal to send to each process\&. Otherwise,
|
||||
\fBmysql_zap\fR
|
||||
tries first with
|
||||
TERM
|
||||
(signal 15) and then with
|
||||
KILL
|
||||
(signal 9)\&.
|
||||
.PP
|
||||
\fBmysql_zap\fR
|
||||
supports the following additional options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-help\fR,
|
||||
\fB\-?\fR,
|
||||
\fB\-I\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
|
||||
.\}
|
||||
\fB\-f\fR
|
||||
.sp
|
||||
Force mode\&.
|
||||
\fBmysql_zap\fR
|
||||
attempts to kill each process without confirmation\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-t\fR
|
||||
.sp
|
||||
Test mode\&. Display information about each process but do not kill it\&.
|
||||
.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/).
|
||||
448
build/lib/mysql/man/man1/mysqlaccess.1
Normal file
448
build/lib/mysql/man/man1/mysqlaccess.1
Normal file
@@ -0,0 +1,448 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlaccess\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 "\FBMYSQLACCESS\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlaccess
|
||||
.SH "NAME"
|
||||
mysqlaccess \- client for checking access privileges
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlaccess\ [\fR\fB\fIhost_name\fR\fR\fB\ [\fR\fB\fIuser_name\fR\fR\fB\ [\fR\fB\fIdb_name\fR\fR\fB]]]\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
|
||||
\fBmysqlaccess [\fR\fB\fIhost_name\fR\fR\fB [\fR\fB\fIuser_name\fR\fR\fB [\fR\fB\fIdb_name\fR\fR\fB]]] [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysqlaccess\fR
|
||||
is a diagnostic tool that Yves Carlier has provided for the MySQL distribution\&. It checks the access privileges for a host name, user name, and database combination\&. Note that
|
||||
\fBmysqlaccess\fR
|
||||
checks access using only the
|
||||
user,
|
||||
db, and
|
||||
host
|
||||
tables\&. It does not check table, column, or routine privileges specified in the
|
||||
tables_priv,
|
||||
columns_priv, or
|
||||
procs_priv
|
||||
tables\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqlaccess\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlaccess [\fR\fB\fIhost_name\fR\fR\fB [\fR\fB\fIuser_name\fR\fR\fB [\fR\fB\fIdb_name\fR\fR\fB]]] [\fR\fB\fIoptions\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysqlaccess\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: help option
|
||||
.\" help option: mysqlaccess
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqlaccess: brief option
|
||||
.\" brief option: mysqlaccess
|
||||
\fB\-\-brief\fR,
|
||||
\fB\-b\fR
|
||||
.sp
|
||||
Generate reports in single\-line tabular format\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: commit option
|
||||
.\" commit option: mysqlaccess
|
||||
\fB\-\-commit\fR
|
||||
.sp
|
||||
Copy the new access privileges from the temporary tables to the original grant tables\&. The grant tables must be flushed for the new privileges to take effect\&. (For example, execute a
|
||||
\fBmysqladmin reload\fR
|
||||
command\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: copy option
|
||||
.\" copy option: mysqlaccess
|
||||
\fB\-\-copy\fR
|
||||
.sp
|
||||
Reload the temporary grant tables from original ones\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: db option
|
||||
.\" db option: mysqlaccess
|
||||
\fB\-\-db=\fR\fB\fIdb_name\fR\fR,
|
||||
\fB\-d \fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
Specify the database name\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: debug option
|
||||
.\" debug option: mysqlaccess
|
||||
\fB\-\-debug=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Specify the debug level\&.
|
||||
\fIN\fR
|
||||
can be an integer from 0 to 3\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: host option
|
||||
.\" host option: mysqlaccess
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
The host name to use in the access privileges\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: howto option
|
||||
.\" howto option: mysqlaccess
|
||||
\fB\-\-howto\fR
|
||||
.sp
|
||||
Display some examples that show how to use
|
||||
\fBmysqlaccess\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: old_server option
|
||||
.\" old_server option: mysqlaccess
|
||||
\fB\-\-old_server\fR
|
||||
.sp
|
||||
Assume that the server is an old MySQL server (before MySQL 3\&.21) that does not yet know how to handle full
|
||||
WHERE
|
||||
clauses\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: password option
|
||||
.\" password option: mysqlaccess
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line,
|
||||
\fBmysqlaccess\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: plan option
|
||||
.\" plan option: mysqlaccess
|
||||
\fB\-\-plan\fR
|
||||
.sp
|
||||
Display suggestions and ideas for future releases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: preview option
|
||||
.\" preview option: mysqlaccess
|
||||
\fB\-\-preview\fR
|
||||
.sp
|
||||
Show the privilege differences after making changes to the temporary grant tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: relnotes option
|
||||
.\" relnotes option: mysqlaccess
|
||||
\fB\-\-relnotes\fR
|
||||
.sp
|
||||
Display the release notes\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: rhost option
|
||||
.\" rhost option: mysqlaccess
|
||||
\fB\-\-rhost=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-H \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: rollback option
|
||||
.\" rollback option: mysqlaccess
|
||||
\fB\-\-rollback\fR
|
||||
.sp
|
||||
Undo the most recent changes to the temporary grant tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: spassword option
|
||||
.\" spassword option: mysqlaccess
|
||||
\fB\-\-spassword[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-P[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server as the superuser\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-spassword\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line,
|
||||
\fBmysqlaccess\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: superuser option
|
||||
.\" superuser option: mysqlaccess
|
||||
\fB\-\-superuser=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-U \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
Specify the user name for connecting as the superuser\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: table option
|
||||
.\" table option: mysqlaccess
|
||||
\fB\-\-table\fR,
|
||||
\fB\-t\fR
|
||||
.sp
|
||||
Generate reports in table format\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: user option
|
||||
.\" user option: mysqlaccess
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The user name to use in the access privileges\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlaccess: version option
|
||||
.\" version option: mysqlaccess
|
||||
\fB\-\-version\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.PP
|
||||
If your MySQL distribution is installed in some nonstandard location, you must change the location where
|
||||
\fBmysqlaccess\fR
|
||||
expects to find the
|
||||
\fBmysql\fR
|
||||
client\&. Edit the
|
||||
mysqlaccess
|
||||
script at approximately line 18\&. Search for a line that looks like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
$MYSQL = \*(Aq/usr/local/bin/mysql\*(Aq; # path to mysql executable
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Change the path to reflect the location where
|
||||
\fBmysql\fR
|
||||
actually is stored on your system\&. If you do not do this, a
|
||||
Broken pipe
|
||||
error will occur when you run
|
||||
\fBmysqlaccess\fR\&.
|
||||
.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/).
|
||||
1116
build/lib/mysql/man/man1/mysqladmin.1
Normal file
1116
build/lib/mysql/man/man1/mysqladmin.1
Normal file
File diff suppressed because it is too large
Load Diff
2087
build/lib/mysql/man/man1/mysqlbinlog.1
Normal file
2087
build/lib/mysql/man/man1/mysqlbinlog.1
Normal file
File diff suppressed because it is too large
Load Diff
87
build/lib/mysql/man/man1/mysqlbug.1
Normal file
87
build/lib/mysql/man/man1/mysqlbug.1
Normal file
@@ -0,0 +1,87 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlbug\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 "\FBMYSQLBUG\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlbug
|
||||
.SH "NAME"
|
||||
mysqlbug \- generate bug report
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlbug\fR\ 'u
|
||||
\fBmysqlbug\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
This program enables you to generate a bug report and send it to Oracle Corporation\&. It is a shell script and runs on Unix\&.
|
||||
.PP
|
||||
The normal way to report bugs is to visit
|
||||
\m[blue]\fB\%http://bugs.mysql.com/\fR\m[], which is the address for our bugs database\&. This database is public and can be browsed and searched by anyone\&. If you log in to the system, you can enter new reports\&. If you have no Web access, you can generate a bug report by using the
|
||||
\fBmysqlbug\fR
|
||||
script\&.
|
||||
.PP
|
||||
\fBmysqlbug\fR
|
||||
helps you generate a report by determining much of the following information automatically, but if something important is missing, please include it with your message\&.
|
||||
\fBmysqlbug\fR
|
||||
can be found in the
|
||||
scripts
|
||||
directory (source distribution) and in the
|
||||
bin
|
||||
directory under your MySQL installation directory (binary distribution)\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqlbug\fR
|
||||
without arguments:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlbug\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The script will place you in an editor with a copy of the report to be sent\&. Edit the lines near the beginning that indicate the nature of the problem\&. Then write the file to save your changes, quit the editor, and
|
||||
\fBmysqlbug\fR
|
||||
will send the report by email\&.
|
||||
.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/).
|
||||
913
build/lib/mysql/man/man1/mysqlcheck.1
Normal file
913
build/lib/mysql/man/man1/mysqlcheck.1
Normal file
@@ -0,0 +1,913 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlcheck\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 "\FBMYSQLCHECK\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlcheck
|
||||
.\" maintenance: tables
|
||||
.\" repair: tables
|
||||
.\" tables: maintenance
|
||||
.\" tables: repair
|
||||
.SH "NAME"
|
||||
mysqlcheck \- a table maintenance program
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlcheck\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB\ [\fR\fB\fItbl_name\fR\fR\fB\ \&.\&.\&.]]\fR\ 'u
|
||||
\fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB \&.\&.\&.]]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysqlcheck\fR
|
||||
client performs table maintenance: It checks, repairs, optimizes, or analyzes tables\&.
|
||||
.PP
|
||||
Each table is locked and therefore unavailable to other sessions while it is being processed, although for check operations, the table is locked with a
|
||||
READ
|
||||
lock only (see
|
||||
Section\ \&13.3.5, \(lqLOCK TABLES and UNLOCK TABLES Syntax\(rq, for more information about
|
||||
READ
|
||||
and
|
||||
WRITE
|
||||
locks)\&. Table maintenance operations can be time\-consuming, particularly for large tables\&. If you use the
|
||||
\fB\-\-databases\fR
|
||||
or
|
||||
\fB\-\-all\-databases\fR
|
||||
option to process all tables in one or more databases, an invocation of
|
||||
\fBmysqlcheck\fR
|
||||
might take a long time\&. (This is also true for
|
||||
\fBmysql_upgrade\fR
|
||||
because that program invokes
|
||||
\fBmysqlcheck\fR
|
||||
to check all tables and repair them if necessary\&.)
|
||||
.PP
|
||||
\fBmysqlcheck\fR
|
||||
is similar in function to
|
||||
\fBmyisamchk\fR, but works differently\&. The main operational difference is that
|
||||
\fBmysqlcheck\fR
|
||||
must be used when the
|
||||
\fBmysqld\fR
|
||||
server is running, whereas
|
||||
\fBmyisamchk\fR
|
||||
should be used when it is not\&. The benefit of using
|
||||
\fBmysqlcheck\fR
|
||||
is that you do not have to stop the server to perform table maintenance\&.
|
||||
.PP
|
||||
\fBmysqlcheck\fR
|
||||
uses the SQL statements
|
||||
CHECK TABLE,
|
||||
REPAIR TABLE,
|
||||
ANALYZE TABLE, and
|
||||
OPTIMIZE TABLE
|
||||
in a convenient way for the user\&. It determines which statements to use for the operation you want to perform, and then sends the statements to the server to be executed\&. For details about which storage engines each statement works with, see the descriptions for those statements in
|
||||
Section\ \&13.7.2, \(lqTable Maintenance Statements\(rq\&.
|
||||
.PP
|
||||
The
|
||||
MyISAM
|
||||
storage engine supports all four maintenance operations, so
|
||||
\fBmysqlcheck\fR
|
||||
can be used to perform any of them on
|
||||
MyISAM
|
||||
tables\&. Other storage engines do not necessarily support all operations\&. In such cases, an error message is displayed\&. For example, if
|
||||
test\&.t
|
||||
is a
|
||||
MEMORY
|
||||
table, an attempt to check it produces this result:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlcheck test t\fR
|
||||
test\&.t
|
||||
note : The storage engine for the table doesn\*(Aqt support check
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
If
|
||||
\fBmysqlcheck\fR
|
||||
is unable to repair a table, see
|
||||
Section\ \&2.13.4, \(lqRebuilding or Repairing Tables or Indexes\(rq
|
||||
for manual table repair strategies\&. This will be the case, for example, for
|
||||
InnoDB
|
||||
tables, which can be checked with
|
||||
CHECK TABLE, but not repaired with
|
||||
REPAIR TABLE\&.
|
||||
.PP
|
||||
The use of
|
||||
\fBmysqlcheck\fR
|
||||
with partitioned tables is not supported before MySQL 5\&.1\&.27\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBCaution\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
It is best to make a backup of a table before performing a table repair operation; under some circumstances the operation might cause data loss\&. Possible causes include but are not limited to file system errors\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
There are three general ways to invoke
|
||||
\fBmysqlcheck\fR:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB \&.\&.\&.]\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \-\-databases \fR\fB\fIdb_name\fR\fR\fB \&.\&.\&.\fR
|
||||
shell> \fBmysqlcheck [\fR\fB\fIoptions\fR\fR\fB] \-\-all\-databases\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
If you do not name any tables following
|
||||
\fIdb_name\fR
|
||||
or if you use the
|
||||
\fB\-\-databases\fR
|
||||
or
|
||||
\fB\-\-all\-databases\fR
|
||||
option, entire databases are checked\&.
|
||||
.PP
|
||||
\fBmysqlcheck\fR
|
||||
has a special feature compared to other client programs\&. The default behavior of checking tables (\fB\-\-check\fR) can be changed by renaming the binary\&. If you want to have a tool that repairs tables by default, you should just make a copy of
|
||||
\fBmysqlcheck\fR
|
||||
named
|
||||
\fBmysqlrepair\fR, or make a symbolic link to
|
||||
\fBmysqlcheck\fR
|
||||
named
|
||||
\fBmysqlrepair\fR\&. If you invoke
|
||||
\fBmysqlrepair\fR, it repairs tables\&.
|
||||
.PP
|
||||
The names shown in the following table can be used to change
|
||||
\fBmysqlcheck\fR
|
||||
default behavior\&.
|
||||
.TS
|
||||
allbox tab(:);
|
||||
lB lB.
|
||||
T{
|
||||
Command
|
||||
T}:T{
|
||||
Meaning
|
||||
T}
|
||||
.T&
|
||||
l l
|
||||
l l
|
||||
l l.
|
||||
T{
|
||||
\fBmysqlrepair\fR
|
||||
T}:T{
|
||||
The default option is \fB\-\-repair\fR
|
||||
T}
|
||||
T{
|
||||
\fBmysqlanalyze\fR
|
||||
T}:T{
|
||||
The default option is \fB\-\-analyze\fR
|
||||
T}
|
||||
T{
|
||||
\fBmysqloptimize\fR
|
||||
T}:T{
|
||||
The default option is \fB\-\-optimize\fR
|
||||
T}
|
||||
.TE
|
||||
.sp 1
|
||||
.PP
|
||||
\fBmysqlcheck\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlcheck]
|
||||
and
|
||||
[client]
|
||||
groups of an option file\&.
|
||||
\fBmysqlcheck\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: help option
|
||||
.\" help option: mysqlcheck
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqlcheck: all-databases option
|
||||
.\" all-databases option: mysqlcheck
|
||||
\fB\-\-all\-databases\fR,
|
||||
\fB\-A\fR
|
||||
.sp
|
||||
Check all tables in all databases\&. This is the same as using the
|
||||
\fB\-\-databases\fR
|
||||
option and naming all the databases on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: all-in-1 option
|
||||
.\" all-in-1 option: mysqlcheck
|
||||
\fB\-\-all\-in\-1\fR,
|
||||
\fB\-1\fR
|
||||
.sp
|
||||
Instead of issuing a statement for each table, execute a single statement for each database that names all the tables from that database to be processed\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: analyze option
|
||||
.\" analyze option: mysqlcheck
|
||||
\fB\-\-analyze\fR,
|
||||
\fB\-a\fR
|
||||
.sp
|
||||
Analyze the tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: auto-repair option
|
||||
.\" auto-repair option: mysqlcheck
|
||||
\fB\-\-auto\-repair\fR
|
||||
.sp
|
||||
If a checked table is corrupted, automatically fix it\&. Any necessary repairs are done after all tables have been checked\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: bind-address option
|
||||
.\" bind-address option: mysqlcheck
|
||||
\fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
|
||||
.sp
|
||||
On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
|
||||
.sp
|
||||
This option is supported only in the version of
|
||||
\fBmysqlcheck\fR
|
||||
that is supplied with MySQL Cluster, beginning with MySQL Cluster NDB 6\&.3\&.4\&. It is not available in standard MySQL 5\&.1 releases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: character-sets-dir option
|
||||
.\" character-sets-dir option: mysqlcheck
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: check option
|
||||
.\" check option: mysqlcheck
|
||||
\fB\-\-check\fR,
|
||||
\fB\-c\fR
|
||||
.sp
|
||||
Check the tables for errors\&. This is the default operation\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: check-only-changed option
|
||||
.\" check-only-changed option: mysqlcheck
|
||||
\fB\-\-check\-only\-changed\fR,
|
||||
\fB\-C\fR
|
||||
.sp
|
||||
Check only tables that have changed since the last check or that have not been closed properly\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: check-upgrade option
|
||||
.\" check-upgrade option: mysqlcheck
|
||||
\fB\-\-check\-upgrade\fR,
|
||||
\fB\-g\fR
|
||||
.sp
|
||||
Invoke
|
||||
CHECK TABLE
|
||||
with the
|
||||
FOR UPGRADE
|
||||
option to check tables for incompatibilities with the current version of the server\&. This option automatically enables the
|
||||
\fB\-\-fix\-db\-names\fR
|
||||
and
|
||||
\fB\-\-fix\-table\-names\fR
|
||||
options\&.
|
||||
\fB\-\-check\-upgrade\fR
|
||||
was added in MySQL 5\&.1\&.7\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: compress option
|
||||
.\" compress option: mysqlcheck
|
||||
\fB\-\-compress\fR
|
||||
.sp
|
||||
Compress all information sent between the client and the server if both support compression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: databases option
|
||||
.\" databases option: mysqlcheck
|
||||
\fB\-\-databases\fR,
|
||||
\fB\-B\fR
|
||||
.sp
|
||||
Process all tables in the named databases\&. Normally,
|
||||
\fBmysqlcheck\fR
|
||||
treats the first name argument on the command line as a database name and following names as table names\&. With this option, it treats all name arguments as database names\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: debug option
|
||||
.\" debug option: mysqlcheck
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:o\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: debug-check option
|
||||
.\" debug-check option: mysqlcheck
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: debug-info option
|
||||
.\" debug-info option: mysqlcheck
|
||||
\fB\-\-debug\-info\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: default-character-set option
|
||||
.\" default-character-set option: mysqlcheck
|
||||
\fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
|
||||
.sp
|
||||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: extended option
|
||||
.\" extended option: mysqlcheck
|
||||
\fB\-\-extended\fR,
|
||||
\fB\-e\fR
|
||||
.sp
|
||||
If you are using this option to check tables, it ensures that they are 100% consistent but takes a long time\&.
|
||||
.sp
|
||||
If you are using this option to repair tables, it runs an extended repair that may not only take a long time to execute, but may produce a lot of garbage rows also!
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: fast option
|
||||
.\" fast option: mysqlcheck
|
||||
\fB\-\-fast\fR,
|
||||
\fB\-F\fR
|
||||
.sp
|
||||
Check only tables that have not been closed properly\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: fix-db-names option
|
||||
.\" fix-db-names option: mysqlcheck
|
||||
\fB\-\-fix\-db\-names\fR
|
||||
.sp
|
||||
Convert database names to 5\&.1 format\&. Only database names that contain special characters are affected\&. This option was added in MySQL 5\&.1\&.7\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: fix-table-names option
|
||||
.\" fix-table-names option: mysqlcheck
|
||||
\fB\-\-fix\-table\-names\fR
|
||||
.sp
|
||||
Convert table names to 5\&.1 format\&. Only table names that contain special characters are affected\&. This option was added in MySQL 5\&.1\&.7\&. As of MySQL 5\&.1\&.23, this option also applies to views\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: force option
|
||||
.\" force option: mysqlcheck
|
||||
\fB\-\-force\fR,
|
||||
\fB\-f\fR
|
||||
.sp
|
||||
Continue even if an SQL error occurs\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: host option
|
||||
.\" host option: mysqlcheck
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: medium-check option
|
||||
.\" medium-check option: mysqlcheck
|
||||
\fB\-\-medium\-check\fR,
|
||||
\fB\-m\fR
|
||||
.sp
|
||||
Do a check that is faster than an
|
||||
\fB\-\-extended\fR
|
||||
operation\&. This finds only 99\&.99% of all errors, which should be good enough in most cases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: optimize option
|
||||
.\" optimize option: mysqlcheck
|
||||
\fB\-\-optimize\fR,
|
||||
\fB\-o\fR
|
||||
.sp
|
||||
Optimize the tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: password option
|
||||
.\" password option: mysqlcheck
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
|
||||
\fIcannot\fR
|
||||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line,
|
||||
\fBmysqlcheck\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: pipe option
|
||||
.\" pipe option: mysql
|
||||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: port option
|
||||
.\" port option: mysqlcheck
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: protocol option
|
||||
.\" protocol option: mysqlcheck
|
||||
\fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
|
||||
.sp
|
||||
The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
|
||||
Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: quick option
|
||||
.\" quick option: mysqlcheck
|
||||
\fB\-\-quick\fR,
|
||||
\fB\-q\fR
|
||||
.sp
|
||||
If you are using this option to check tables, it prevents the check from scanning the rows to check for incorrect links\&. This is the fastest check method\&.
|
||||
.sp
|
||||
If you are using this option to repair tables, it tries to repair only the index tree\&. This is the fastest repair method\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: repair option
|
||||
.\" repair option: mysqlcheck
|
||||
\fB\-\-repair\fR,
|
||||
\fB\-r\fR
|
||||
.sp
|
||||
Perform a repair that can fix almost anything except unique keys that are not unique\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: silent option
|
||||
.\" silent option: mysqlcheck
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Silent mode\&. Print only error messages\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: socket option
|
||||
.\" socket option: mysqlcheck
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: SSL options
|
||||
.\" SSL options: mysqlcheck
|
||||
\fB\-\-ssl*\fR
|
||||
.sp
|
||||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&6.3.6.4, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: tables option
|
||||
.\" tables option: mysqlcheck
|
||||
\fB\-\-tables\fR
|
||||
.sp
|
||||
Override the
|
||||
\fB\-\-databases\fR
|
||||
or
|
||||
\fB\-B\fR
|
||||
option\&. All name arguments following the option are regarded as table names\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: use-frm option
|
||||
.\" use-frm option: mysqlcheck
|
||||
\fB\-\-use\-frm\fR
|
||||
.sp
|
||||
For repair operations on
|
||||
MyISAM
|
||||
tables, get the table structure from the
|
||||
\&.frm
|
||||
file so that the table can be repaired even if the
|
||||
\&.MYI
|
||||
header is corrupted\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: user option
|
||||
.\" user option: mysqlcheck
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: verbose option
|
||||
.\" verbose option: mysqlcheck
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print information about the various stages of program operation\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: version option
|
||||
.\" version option: mysqlcheck
|
||||
\fB\-\-version\fR,
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlcheck: write-binlog option
|
||||
.\" write-binlog option: mysqlcheck
|
||||
\fB\-\-write\-binlog\fR
|
||||
.sp
|
||||
This option is enabled by default, so that
|
||||
ANALYZE TABLE,
|
||||
OPTIMIZE TABLE, and
|
||||
REPAIR TABLE
|
||||
statements generated by
|
||||
\fBmysqlcheck\fR
|
||||
are written to the binary log\&. Use
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
to cause
|
||||
NO_WRITE_TO_BINLOG
|
||||
to be added to the statements so that they are not logged\&. Use the
|
||||
\fB\-\-skip\-write\-binlog\fR
|
||||
when these statements should not be sent to replication slaves or run when using the binary logs for recovery from backup\&. This option was added in MySQL 5\&.1\&.18\&.
|
||||
.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/).
|
||||
751
build/lib/mysql/man/man1/mysqld_multi.1
Normal file
751
build/lib/mysql/man/man1/mysqld_multi.1
Normal file
@@ -0,0 +1,751 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqld_multi\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 "\FBMYSQLD_MULTI\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqld_multi
|
||||
.\" tools: mysqld_multi
|
||||
.\" scripts
|
||||
.\" multi mysqld
|
||||
.SH "NAME"
|
||||
mysqld_multi \- manage multiple MySQL servers
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqld_multi\ [\fR\fB\fIoptions\fR\fR\fB]\ {start|stop|report}\ [\fR\fB\fIGNR\fR\fR\fB[,\fR\fB\fIGNR\fR\fR\fB]\ \&.\&.\&.]\fR\ 'u
|
||||
\fBmysqld_multi [\fR\fB\fIoptions\fR\fR\fB] {start|stop|report} [\fR\fB\fIGNR\fR\fR\fB[,\fR\fB\fIGNR\fR\fR\fB] \&.\&.\&.]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysqld_multi\fR
|
||||
is designed to manage several
|
||||
\fBmysqld\fR
|
||||
processes that listen for connections on different Unix socket files and TCP/IP ports\&. It can start or stop servers, or report their current status\&. The MySQL Instance Manager is an alternative means of managing multiple servers (see
|
||||
\fBmysqlmanager\fR(8))\&.
|
||||
.PP
|
||||
\fBmysqld_multi\fR
|
||||
searches for groups named
|
||||
[mysqld\fIN\fR]
|
||||
in
|
||||
my\&.cnf
|
||||
(or in the file named by the
|
||||
\fB\-\-config\-file\fR
|
||||
option)\&.
|
||||
\fIN\fR
|
||||
can be any positive integer\&. This number is referred to in the following discussion as the option group number, or
|
||||
\fIGNR\fR\&. Group numbers distinguish option groups from one another and are used as arguments to
|
||||
\fBmysqld_multi\fR
|
||||
to specify which servers you want to start, stop, or obtain a status report for\&. Options listed in these groups are the same that you would use in the
|
||||
[mysqld]
|
||||
group used for starting
|
||||
\fBmysqld\fR\&. (See, for example,
|
||||
Section\ \&2.12.1.2, \(lqStarting and Stopping MySQL Automatically\(rq\&.) However, when using multiple servers, it is necessary that each one use its own value for options such as the Unix socket file and TCP/IP port number\&. For more information on which options must be unique per server in a multiple\-server environment, see
|
||||
Section\ \&5.3, \(lqRunning Multiple MySQL Instances on One Machine\(rq\&.
|
||||
.PP
|
||||
To invoke
|
||||
\fBmysqld_multi\fR, use the following syntax:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqld_multi [\fR\fB\fIoptions\fR\fR\fB] {start|stop|report} [\fR\fB\fIGNR\fR\fR\fB[,\fR\fB\fIGNR\fR\fR\fB] \&.\&.\&.]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
start,
|
||||
stop, and
|
||||
report
|
||||
indicate which operation to perform\&. You can perform the designated operation for a single server or multiple servers, depending on the
|
||||
\fIGNR\fR
|
||||
list that follows the option name\&. If there is no list,
|
||||
\fBmysqld_multi\fR
|
||||
performs the operation for all servers in the option file\&.
|
||||
.PP
|
||||
Each
|
||||
\fIGNR\fR
|
||||
value represents an option group number or range of group numbers\&. The value should be the number at the end of the group name in the option file\&. For example, the
|
||||
\fIGNR\fR
|
||||
for a group named
|
||||
[mysqld17]
|
||||
is
|
||||
17\&. To specify a range of numbers, separate the first and last numbers by a dash\&. The
|
||||
\fIGNR\fR
|
||||
value
|
||||
10\-13
|
||||
represents groups
|
||||
[mysqld10]
|
||||
through
|
||||
[mysqld13]\&. Multiple groups or group ranges can be specified on the command line, separated by commas\&. There must be no whitespace characters (spaces or tabs) in the
|
||||
\fIGNR\fR
|
||||
list; anything after a whitespace character is ignored\&.
|
||||
.PP
|
||||
This command starts a single server using option group
|
||||
[mysqld17]:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqld_multi start 17\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
This command stops several servers, using option groups
|
||||
[mysqld8]
|
||||
and
|
||||
[mysqld10]
|
||||
through
|
||||
[mysqld13]:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqld_multi stop 8,10\-13\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
For an example of how you might set up an option file, use this command:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqld_multi \-\-example\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
As of MySQL 5\&.1\&.18,
|
||||
\fBmysqld_multi\fR
|
||||
searches for option files as follows:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: no-defaults option
|
||||
.\" no-defaults option: mysqld_multi
|
||||
With
|
||||
\fB\-\-no\-defaults\fR, no option files are read\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: defaults-file option
|
||||
.\" defaults-file option: mysqld_multi
|
||||
With
|
||||
\fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR, only the named file is read\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: defaults-extra-file option
|
||||
.\" defaults-extra-file option: mysqld_multi
|
||||
Otherwise, option files in the standard list of locations are read, including any file named by the
|
||||
\fB\-\-defaults\-extra\-file=\fR\fB\fIfile_name\fR\fR
|
||||
option, if one is given\&. (If the option is given multiple times, the last value is used\&.)
|
||||
.RE
|
||||
.PP
|
||||
Before MySQL 5\&.1\&.18, the preceding options are not recognized\&. Files in the standard locations are read, and any file named by the
|
||||
\fB\-\-config\-file=\fR\fB\fIfile_name\fR\fR
|
||||
option, if one is given\&. A file named by
|
||||
\fB\-\-config\-file\fR
|
||||
is read only for
|
||||
[mysqld\fIN\fR]
|
||||
option groups, not the
|
||||
[mysqld_multi]
|
||||
group\&.
|
||||
.PP
|
||||
Option files read are searched for
|
||||
[mysqld_multi]
|
||||
and
|
||||
[mysqld\fIN\fR]
|
||||
option groups\&. The
|
||||
[mysqld_multi]
|
||||
group can be used for options to
|
||||
\fBmysqld_multi\fR
|
||||
itself\&.
|
||||
[mysqld\fIN\fR]
|
||||
groups can be used for options passed to specific
|
||||
\fBmysqld\fR
|
||||
instances\&.
|
||||
.PP
|
||||
As of MySQL 5\&.1\&.35, the
|
||||
[mysqld]
|
||||
or
|
||||
[mysqld_safe]
|
||||
groups can be used for common options read by all instances of
|
||||
\fBmysqld\fR
|
||||
or
|
||||
\fBmysqld_safe\fR\&. You can specify a
|
||||
\fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR
|
||||
option to use a different configuration file for that instance, in which case the
|
||||
[mysqld]
|
||||
or
|
||||
[mysqld_safe]
|
||||
groups from that file will be used for that instance\&. Before MySQL 5\&.1\&.35, some versions of
|
||||
\fBmysqld_multi\fR
|
||||
pass the
|
||||
\fB\-\-no\-defaults\fR
|
||||
options to instances, so these techniques are inapplicable\&.
|
||||
.PP
|
||||
\fBmysqld_multi\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: help option
|
||||
.\" help option: mysqld_multi
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqld_multi: config-file option
|
||||
.\" config-file option: mysqld_multi
|
||||
\fB\-\-config\-file=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
As of MySQL 5\&.1\&.18, this option is deprecated\&. If given, it is treated the same way as
|
||||
\fB\-\-defaults\-extra\-file\fR, described earlier\&.
|
||||
\fB\-\-config\-file\fR
|
||||
is removed in MySQL 5\&.5\&.
|
||||
.sp
|
||||
Before MySQL 5\&.1\&.18, this option specifies the name of an extra option file\&. It affects where
|
||||
\fBmysqld_multi\fR
|
||||
looks for
|
||||
[mysqld\fIN\fR]
|
||||
option groups\&. Without this option, all options are read from the usual
|
||||
my\&.cnf
|
||||
file\&. The option does not affect where
|
||||
\fBmysqld_multi\fR
|
||||
reads its own options, which are always taken from the
|
||||
[mysqld_multi]
|
||||
group in the usual
|
||||
my\&.cnf
|
||||
file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: example option
|
||||
.\" example option: mysqld_multi
|
||||
\fB\-\-example\fR
|
||||
.sp
|
||||
Display a sample option file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: log option
|
||||
.\" log option: mysqld_multi
|
||||
\fB\-\-log=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Specify the name of the log file\&. If the file exists, log output is appended to it\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: mysqladmin option
|
||||
.\" mysqladmin option: mysqld_multi
|
||||
\fB\-\-mysqladmin=\fR\fB\fIprog_name\fR\fR
|
||||
.sp
|
||||
The
|
||||
\fBmysqladmin\fR
|
||||
binary to be used to stop servers\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: mysqld option
|
||||
.\" mysqld option: mysqld_multi
|
||||
\fB\-\-mysqld=\fR\fB\fIprog_name\fR\fR
|
||||
.sp
|
||||
The
|
||||
\fBmysqld\fR
|
||||
binary to be used\&. Note that you can specify
|
||||
\fBmysqld_safe\fR
|
||||
as the value for this option also\&. If you use
|
||||
\fBmysqld_safe\fR
|
||||
to start the server, you can include the
|
||||
mysqld
|
||||
or
|
||||
ledir
|
||||
options in the corresponding
|
||||
[mysqld\fIN\fR]
|
||||
option group\&. These options indicate the name of the server that
|
||||
\fBmysqld_safe\fR
|
||||
should start and the path name of the directory where the server is located\&. (See the descriptions for these options in
|
||||
\fBmysqld_safe\fR(1)\&.) Example:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
[mysqld38]
|
||||
mysqld = mysqld\-debug
|
||||
ledir = /opt/local/mysql/libexec
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: no-log option
|
||||
.\" no-log option: mysqld_multi
|
||||
\fB\-\-no\-log\fR
|
||||
.sp
|
||||
Print log information to
|
||||
stdout
|
||||
rather than to the log file\&. By default, output goes to the log file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: password option
|
||||
.\" password option: mysqld_multi
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password of the MySQL account to use when invoking
|
||||
\fBmysqladmin\fR\&. Note that the password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: silent option
|
||||
.\" silent option: mysqld_multi
|
||||
\fB\-\-silent\fR
|
||||
.sp
|
||||
Silent mode; disable warnings\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: tcp-ip option
|
||||
.\" tcp-ip option: mysqld_multi
|
||||
\fB\-\-tcp\-ip\fR
|
||||
.sp
|
||||
Connect to each MySQL server through the TCP/IP port instead of the Unix socket file\&. (If a socket file is missing, the server might still be running, but accessible only through the TCP/IP port\&.) By default, connections are made using the Unix socket file\&. This option affects
|
||||
stop
|
||||
and
|
||||
report
|
||||
operations\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: user option
|
||||
.\" user option: mysqld_multi
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The user name of the MySQL account to use when invoking
|
||||
\fBmysqladmin\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: verbose option
|
||||
.\" verbose option: mysqld_multi
|
||||
\fB\-\-verbose\fR
|
||||
.sp
|
||||
Be more verbose\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_multi: version option
|
||||
.\" version option: mysqld_multi
|
||||
\fB\-\-version\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.PP
|
||||
Some notes about
|
||||
\fBmysqld_multi\fR:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fBMost important\fR: Before using
|
||||
\fBmysqld_multi\fR
|
||||
be sure that you understand the meanings of the options that are passed to the
|
||||
\fBmysqld\fR
|
||||
servers and
|
||||
\fIwhy\fR
|
||||
you would want to have separate
|
||||
\fBmysqld\fR
|
||||
processes\&. Beware of the dangers of using multiple
|
||||
\fBmysqld\fR
|
||||
servers with the same data directory\&. Use separate data directories, unless you
|
||||
\fIknow\fR
|
||||
what you are doing\&. Starting multiple servers with the same data directory does
|
||||
\fInot\fR
|
||||
give you extra performance in a threaded system\&. See
|
||||
Section\ \&5.3, \(lqRunning Multiple MySQL Instances on One Machine\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBImportant\fR
|
||||
.ps -1
|
||||
.br
|
||||
Make sure that the data directory for each server is fully accessible to the Unix account that the specific
|
||||
\fBmysqld\fR
|
||||
process is started as\&.
|
||||
\fIDo not\fR
|
||||
use the Unix
|
||||
\fIroot\fR
|
||||
account for this, unless you
|
||||
\fIknow\fR
|
||||
what you are doing\&. See
|
||||
Section\ \&6.1.5, \(lqHow to Run MySQL as a Normal User\(rq\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Make sure that the MySQL account used for stopping the
|
||||
\fBmysqld\fR
|
||||
servers (with the
|
||||
\fBmysqladmin\fR
|
||||
program) has the same user name and password for each server\&. Also, make sure that the account has the
|
||||
SHUTDOWN
|
||||
privilege\&. If the servers that you want to manage have different user names or passwords for the administrative accounts, you might want to create an account on each server that has the same user name and password\&. For example, you might set up a common
|
||||
multi_admin
|
||||
account by executing the following commands for each server:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql \-u root \-S /tmp/mysql\&.sock \-p\fR
|
||||
Enter password:
|
||||
mysql> \fBGRANT SHUTDOWN ON *\&.*\fR
|
||||
\-> \fBTO \*(Aqmulti_admin\*(Aq@\*(Aqlocalhost\*(Aq IDENTIFIED BY \*(Aqmultipass\*(Aq;\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
See
|
||||
Section\ \&6.2, \(lqThe MySQL Access Privilege System\(rq\&. You have to do this for each
|
||||
\fBmysqld\fR
|
||||
server\&. Change the connection parameters appropriately when connecting to each one\&. Note that the host name part of the account name must permit you to connect as
|
||||
multi_admin
|
||||
from the host where you want to run
|
||||
\fBmysqld_multi\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
The Unix socket file and the TCP/IP port number must be different for every
|
||||
\fBmysqld\fR\&. (Alternatively, if the host has multiple network addresses, you can use
|
||||
\fB\-\-bind\-address\fR
|
||||
to cause different servers to listen to different interfaces\&.)
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
The
|
||||
\fB\-\-pid\-file\fR
|
||||
option is very important if you are using
|
||||
\fBmysqld_safe\fR
|
||||
to start
|
||||
\fBmysqld\fR
|
||||
(for example,
|
||||
\fB\-\-mysqld=mysqld_safe\fR) Every
|
||||
\fBmysqld\fR
|
||||
should have its own process ID file\&. The advantage of using
|
||||
\fBmysqld_safe\fR
|
||||
instead of
|
||||
\fBmysqld\fR
|
||||
is that
|
||||
\fBmysqld_safe\fR
|
||||
monitors its
|
||||
\fBmysqld\fR
|
||||
process and restarts it if the process terminates due to a signal sent using
|
||||
kill \-9
|
||||
or for other reasons, such as a segmentation fault\&. Please note that the
|
||||
\fBmysqld_safe\fR
|
||||
script might require that you start it from a certain place\&. This means that you might have to change location to a certain directory before running
|
||||
\fBmysqld_multi\fR\&. If you have problems starting, please see the
|
||||
\fBmysqld_safe\fR
|
||||
script\&. Check especially the lines:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
||||
MY_PWD=`pwd`
|
||||
# Check if we are starting this relative (for the binary release)
|
||||
if test \-d $MY_PWD/data/mysql \-a \e
|
||||
\-f \&./share/mysql/english/errmsg\&.sys \-a \e
|
||||
\-x \&./bin/mysqld
|
||||
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
The test performed by these lines should be successful, or you might encounter problems\&. See
|
||||
\fBmysqld_safe\fR(1)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
You might want to use the
|
||||
\fB\-\-user\fR
|
||||
option for
|
||||
\fBmysqld\fR, but to do this you need to run the
|
||||
\fBmysqld_multi\fR
|
||||
script as the Unix superuser (root)\&. Having the option in the option file doesn\*(Aqt matter; you just get a warning if you are not the superuser and the
|
||||
\fBmysqld\fR
|
||||
processes are started under your own Unix account\&.
|
||||
.RE
|
||||
.PP
|
||||
The following example shows how you might set up an option file for use with
|
||||
\fBmysqld_multi\fR\&. The order in which the
|
||||
\fBmysqld\fR
|
||||
programs are started or stopped depends on the order in which they appear in the option file\&. Group numbers need not form an unbroken sequence\&. The first and fifth
|
||||
[mysqld\fIN\fR]
|
||||
groups were intentionally omitted from the example to illustrate that you can have
|
||||
\(lqgaps\(rq
|
||||
in the option file\&. This gives you more flexibility\&.
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
# This file should probably be in your home dir (~/\&.my\&.cnf)
|
||||
# or /etc/my\&.cnf
|
||||
# Version 2\&.1 by Jani Tolonen
|
||||
[mysqld_multi]
|
||||
mysqld = /usr/local/bin/mysqld_safe
|
||||
mysqladmin = /usr/local/bin/mysqladmin
|
||||
user = multi_admin
|
||||
password = multipass
|
||||
[mysqld2]
|
||||
socket = /tmp/mysql\&.sock2
|
||||
port = 3307
|
||||
pid\-file = /usr/local/mysql/var2/hostname\&.pid2
|
||||
datadir = /usr/local/mysql/var2
|
||||
language = /usr/local/share/mysql/english
|
||||
user = john
|
||||
[mysqld3]
|
||||
socket = /tmp/mysql\&.sock3
|
||||
port = 3308
|
||||
pid\-file = /usr/local/mysql/var3/hostname\&.pid3
|
||||
datadir = /usr/local/mysql/var3
|
||||
language = /usr/local/share/mysql/swedish
|
||||
user = monty
|
||||
[mysqld4]
|
||||
socket = /tmp/mysql\&.sock4
|
||||
port = 3309
|
||||
pid\-file = /usr/local/mysql/var4/hostname\&.pid4
|
||||
datadir = /usr/local/mysql/var4
|
||||
language = /usr/local/share/mysql/estonia
|
||||
user = tonu
|
||||
[mysqld6]
|
||||
socket = /tmp/mysql\&.sock6
|
||||
port = 3311
|
||||
pid\-file = /usr/local/mysql/var6/hostname\&.pid6
|
||||
datadir = /usr/local/mysql/var6
|
||||
language = /usr/local/share/mysql/japanese
|
||||
user = jani
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
See
|
||||
Section\ \&4.2.3.3, \(lqUsing Option Files\(rq\&.
|
||||
.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/).
|
||||
873
build/lib/mysql/man/man1/mysqld_safe.1
Normal file
873
build/lib/mysql/man/man1/mysqld_safe.1
Normal file
@@ -0,0 +1,873 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqld_safe\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 "\FBMYSQLD_SAFE\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqld_safe
|
||||
.\" tools: mysqld_safe
|
||||
.\" scripts
|
||||
.SH "NAME"
|
||||
mysqld_safe \- MySQL server startup script
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqld_safe\ \fR\fB\fIoptions\fR\fR\ 'u
|
||||
\fBmysqld_safe \fR\fB\fIoptions\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysqld_safe\fR
|
||||
is the recommended way to start a
|
||||
\fBmysqld\fR
|
||||
server on Unix and NetWare\&.
|
||||
\fBmysqld_safe\fR
|
||||
adds some safety features such as restarting the server when an error occurs and logging runtime information to an error log file\&. Descriptions of error logging and NetWare\-specific behaviors are given later in this section\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
In MySQL 5\&.1\&.20 (only), the default error logging behavior with
|
||||
\fBmysqld_safe\fR
|
||||
is to write errors to
|
||||
syslog
|
||||
on systems that support the
|
||||
\fBlogger\fR
|
||||
program\&. This differs from the default behavior of writing an error log file for other versions\&.
|
||||
.PP
|
||||
\fBIn 5\&.1\&.20, logging to \fR\fBsyslog\fR\fB may fail to operate correctly in some cases; if so, use \fR\fB\fB\-\-skip\-syslog\fR\fR\fB to use the default log file or \fR\fB\fB\-\-log\-error=\fR\fB\fIfile_name\fR\fR\fR\fB to specify a log file name explicitly\&.\fR
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
\fBmysqld_safe\fR
|
||||
tries to start an executable named
|
||||
\fBmysqld\fR\&. To override the default behavior and specify explicitly the name of the server you want to run, specify a
|
||||
\fB\-\-mysqld\fR
|
||||
or
|
||||
\fB\-\-mysqld\-version\fR
|
||||
option to
|
||||
\fBmysqld_safe\fR\&. You can also use
|
||||
\fB\-\-ledir\fR
|
||||
to indicate the directory where
|
||||
\fBmysqld_safe\fR
|
||||
should look for the server\&.
|
||||
.PP
|
||||
Many of the options to
|
||||
\fBmysqld_safe\fR
|
||||
are the same as the options to
|
||||
\fBmysqld\fR\&. See
|
||||
Section\ \&5.1.3, \(lqServer Command Options\(rq\&.
|
||||
.PP
|
||||
Options unknown to
|
||||
\fBmysqld_safe\fR
|
||||
are passed to
|
||||
\fBmysqld\fR
|
||||
if they are specified on the command line, but ignored if they are specified in the
|
||||
[mysqld_safe]
|
||||
group of an option file\&. See
|
||||
Section\ \&4.2.3.3, \(lqUsing Option Files\(rq\&.
|
||||
.PP
|
||||
\fBmysqld_safe\fR
|
||||
reads all options from the
|
||||
[mysqld],
|
||||
[server], and
|
||||
[mysqld_safe]
|
||||
sections in option files\&. For example, if you specify a
|
||||
[mysqld]
|
||||
section like this,
|
||||
\fBmysqld_safe\fR
|
||||
will find and use the
|
||||
\fB\-\-log\-error\fR
|
||||
option:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
[mysqld]
|
||||
log\-error=error\&.log
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
For backward compatibility,
|
||||
\fBmysqld_safe\fR
|
||||
also reads
|
||||
[safe_mysqld]
|
||||
sections, although you should rename such sections to
|
||||
[mysqld_safe]
|
||||
in MySQL 5\&.1 installations\&.
|
||||
.PP
|
||||
\fBmysqld_safe\fR
|
||||
supports the options in the following list\&. It also reads option files and supports the options for processing them described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: help option
|
||||
.\" help option: mysqld_safe
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqld_safe: autoclose option
|
||||
.\" autoclose option: mysqld_safe
|
||||
\fB\-\-autoclose\fR
|
||||
.sp
|
||||
(NetWare only) On NetWare,
|
||||
\fBmysqld_safe\fR
|
||||
provides a screen presence\&. When you unload (shut down) the
|
||||
\fBmysqld_safe\fR
|
||||
NLM, the screen does not by default go away\&. Instead, it prompts for user input:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
*<NLM has terminated; Press any key to close the screen>*
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
If you want NetWare to close the screen automatically instead, use the
|
||||
\fB\-\-autoclose\fR
|
||||
option to
|
||||
\fBmysqld_safe\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: basedir option
|
||||
.\" basedir option: mysqld_safe
|
||||
\fB\-\-basedir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the MySQL installation directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: core-file-size option
|
||||
.\" core-file-size option: mysqld_safe
|
||||
\fB\-\-core\-file\-size=\fR\fB\fIsize\fR\fR
|
||||
.sp
|
||||
The size of the core file that
|
||||
\fBmysqld\fR
|
||||
should be able to create\&. The option value is passed to
|
||||
\fBulimit \-c\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: datadir option
|
||||
.\" datadir option: mysqld_safe
|
||||
\fB\-\-datadir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The path to the data directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: defaults-extra-file option
|
||||
.\" defaults-extra-file option: mysqld_safe
|
||||
\fB\-\-defaults\-extra\-file=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The name of an option file to be read in addition to the usual option files\&. This must be the first option on the command line if it is used\&. If the file does not exist or is otherwise inaccessible, the server will exit with an error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: defaults-file option
|
||||
.\" defaults-file option: mysqld_safe
|
||||
\fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
The name of an option file to be read instead of the usual option files\&. This must be the first option on the command line if it is used\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: ledir option
|
||||
.\" ledir option: mysqld_safe
|
||||
\fB\-\-ledir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
If
|
||||
\fBmysqld_safe\fR
|
||||
cannot find the server, use this option to indicate the path name to the directory where the server is located\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: log-error option
|
||||
.\" log-error option: mysqld_safe
|
||||
\fB\-\-log\-error=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Write the error log to the given file\&. See
|
||||
Section\ \&5.2.2, \(lqThe Error Log\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: mysqld option
|
||||
.\" mysqld option: mysqld_safe
|
||||
\fB\-\-mysqld=\fR\fB\fIprog_name\fR\fR
|
||||
.sp
|
||||
The name of the server program (in the
|
||||
ledir
|
||||
directory) that you want to start\&. This option is needed if you use the MySQL binary distribution but have the data directory outside of the binary distribution\&. If
|
||||
\fBmysqld_safe\fR
|
||||
cannot find the server, use the
|
||||
\fB\-\-ledir\fR
|
||||
option to indicate the path name to the directory where the server is located\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: mysqld-version option
|
||||
.\" mysqld-version option: mysqld_safe
|
||||
\fB\-\-mysqld\-version=\fR\fB\fIsuffix\fR\fR
|
||||
.sp
|
||||
This option is similar to the
|
||||
\fB\-\-mysqld\fR
|
||||
option, but you specify only the suffix for the server program name\&. The basename is assumed to be
|
||||
\fBmysqld\fR\&. For example, if you use
|
||||
\fB\-\-mysqld\-version=debug\fR,
|
||||
\fBmysqld_safe\fR
|
||||
starts the
|
||||
\fBmysqld\-debug\fR
|
||||
program in the
|
||||
ledir
|
||||
directory\&. If the argument to
|
||||
\fB\-\-mysqld\-version\fR
|
||||
is empty,
|
||||
\fBmysqld_safe\fR
|
||||
uses
|
||||
\fBmysqld\fR
|
||||
in the
|
||||
ledir
|
||||
directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: nice option
|
||||
.\" nice option: mysqld_safe
|
||||
\fB\-\-nice=\fR\fB\fIpriority\fR\fR
|
||||
.sp
|
||||
Use the
|
||||
nice
|
||||
program to set the server\*(Aqs scheduling priority to the given value\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: no-defaults option
|
||||
.\" no-defaults option: mysqld_safe
|
||||
\fB\-\-no\-defaults\fR
|
||||
.sp
|
||||
Do not read any option files\&. This must be the first option on the command line if it is used\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: open-files-limit option
|
||||
.\" open-files-limit option: mysqld_safe
|
||||
\fB\-\-open\-files\-limit=\fR\fB\fIcount\fR\fR
|
||||
.sp
|
||||
The number of files that
|
||||
\fBmysqld\fR
|
||||
should be able to open\&. The option value is passed to
|
||||
\fBulimit \-n\fR\&. Note that you need to start
|
||||
\fBmysqld_safe\fR
|
||||
as
|
||||
root
|
||||
for this to work properly!
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: pid-file option
|
||||
.\" pid-file option: mysqld_safe
|
||||
\fB\-\-pid\-file=\fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
The path name of the process ID file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: port option
|
||||
.\" port option: mysqld_safe
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The port number that the server should use when listening for TCP/IP connections\&. The port number must be 1024 or higher unless the server is started by the
|
||||
root
|
||||
system user\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: skip-kill-mysqld option
|
||||
.\" skip-kill-mysqld option: mysqld_safe
|
||||
\fB\-\-skip\-kill\-mysqld\fR
|
||||
.sp
|
||||
Do not try to kill stray
|
||||
\fBmysqld\fR
|
||||
processes at startup\&. This option works only on Linux\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: socket option
|
||||
.\" socket option: mysqld_safe
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The Unix socket file that the server should use when listening for local connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: syslog option
|
||||
.\" syslog option: mysqld_safe
|
||||
.\" mysqld_safe: skip-syslog option
|
||||
.\" skip-syslog option: mysqld_safe
|
||||
\fB\-\-syslog\fR,
|
||||
\fB\-\-skip\-syslog\fR
|
||||
.sp
|
||||
\fB\-\-syslog\fR
|
||||
causes error messages to be sent to
|
||||
syslog
|
||||
on systems that support the
|
||||
\fBlogger\fR
|
||||
program\&.
|
||||
\-\-skip\-syslog
|
||||
suppresses the use of
|
||||
syslog; messages are written to an error log file\&. These options were added in MySQL 5\&.1\&.20\&.
|
||||
.sp
|
||||
When
|
||||
syslog
|
||||
is used, the
|
||||
daemon\&.err
|
||||
syslog priority/facility is used for all log messages\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: syslog-tag option
|
||||
.\" syslog-tag option: mysqld_safe
|
||||
\fB\-\-syslog\-tag=\fR\fB\fItag\fR\fR
|
||||
.sp
|
||||
For logging to
|
||||
syslog, messages from
|
||||
\fBmysqld_safe\fR
|
||||
and
|
||||
\fBmysqld\fR
|
||||
are written with a tag of
|
||||
mysqld_safe
|
||||
and
|
||||
mysqld, respectively\&. To specify a suffix for the tag, use
|
||||
\fB\-\-syslog\-tag=\fR\fB\fItag\fR\fR, which modifies the tags to be
|
||||
mysqld_safe\-\fItag\fR
|
||||
and
|
||||
mysqld\-\fItag\fR\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: timezone option
|
||||
.\" timezone option: mysqld_safe
|
||||
\fB\-\-timezone=\fR\fB\fItimezone\fR\fR
|
||||
.sp
|
||||
Set the
|
||||
TZ
|
||||
time zone environment variable to the given option value\&. Consult your operating system documentation for legal time zone specification formats\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqld_safe: user option
|
||||
.\" user option: mysqld_safe
|
||||
\fB\-\-user={\fR\fB\fIuser_name\fR\fR\fB|\fR\fB\fIuser_id\fR\fR\fB}\fR
|
||||
.sp
|
||||
Run the
|
||||
\fBmysqld\fR
|
||||
server as the user having the name
|
||||
\fIuser_name\fR
|
||||
or the numeric user ID
|
||||
\fIuser_id\fR\&. (\(lqUser\(rq
|
||||
in this context refers to a system login account, not a MySQL user listed in the grant tables\&.)
|
||||
.RE
|
||||
.PP
|
||||
If you execute
|
||||
\fBmysqld_safe\fR
|
||||
with the
|
||||
\fB\-\-defaults\-file\fR
|
||||
or
|
||||
\fB\-\-defaults\-extra\-file\fR
|
||||
option to name an option file, the option must be the first one given on the command line or the option file will not be used\&. For example, this command will not use the named option file:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
mysql> \fBmysqld_safe \-\-port=\fR\fB\fIport_num\fR\fR\fB \-\-defaults\-file=\fR\fB\fIfile_name\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Instead, use the following command:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
mysql> \fBmysqld_safe \-\-defaults\-file=\fR\fB\fIfile_name\fR\fR\fB \-\-port=\fR\fB\fIport_num\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The
|
||||
\fBmysqld_safe\fR
|
||||
script is written so that it normally can start a server that was installed from either a source or a binary distribution of MySQL, even though these types of distributions typically install the server in slightly different locations\&. (See
|
||||
Section\ \&2.1.5, \(lqInstallation Layouts\(rq\&.)
|
||||
\fBmysqld_safe\fR
|
||||
expects one of the following conditions to be true:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
The server and databases can be found relative to the working directory (the directory from which
|
||||
\fBmysqld_safe\fR
|
||||
is invoked)\&. For binary distributions,
|
||||
\fBmysqld_safe\fR
|
||||
looks under its working directory for
|
||||
bin
|
||||
and
|
||||
data
|
||||
directories\&. For source distributions, it looks for
|
||||
libexec
|
||||
and
|
||||
var
|
||||
directories\&. This condition should be met if you execute
|
||||
\fBmysqld_safe\fR
|
||||
from your MySQL installation directory (for example,
|
||||
/usr/local/mysql
|
||||
for a binary distribution)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If the server and databases cannot be found relative to the working directory,
|
||||
\fBmysqld_safe\fR
|
||||
attempts to locate them by absolute path names\&. Typical locations are
|
||||
/usr/local/libexec
|
||||
and
|
||||
/usr/local/var\&. The actual locations are determined from the values configured into the distribution at the time it was built\&. They should be correct if MySQL is installed in the location specified at configuration time\&.
|
||||
.RE
|
||||
.PP
|
||||
Because
|
||||
\fBmysqld_safe\fR
|
||||
tries to find the server and databases relative to its own working directory, you can install a binary distribution of MySQL anywhere, as long as you run
|
||||
\fBmysqld_safe\fR
|
||||
from the MySQL installation directory:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBcd \fR\fB\fImysql_installation_directory\fR\fR
|
||||
shell> \fBbin/mysqld_safe &\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
If
|
||||
\fBmysqld_safe\fR
|
||||
fails, even when invoked from the MySQL installation directory, you can specify the
|
||||
\fB\-\-ledir\fR
|
||||
and
|
||||
\fB\-\-datadir\fR
|
||||
options to indicate the directories in which the server and databases are located on your system\&.
|
||||
.PP
|
||||
When you use
|
||||
\fBmysqld_safe\fR
|
||||
to start
|
||||
\fBmysqld\fR,
|
||||
\fBmysqld_safe\fR
|
||||
arranges for error (and notice) messages from itself and from
|
||||
\fBmysqld\fR
|
||||
to go to the same destination\&.
|
||||
.PP
|
||||
As of MySQL 5\&.1\&.20, there are several
|
||||
\fBmysqld_safe\fR
|
||||
options for controlling the destination of these messages:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-syslog\fR: Write error messages to
|
||||
syslog
|
||||
on systems that support the
|
||||
\fBlogger\fR
|
||||
program\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-skip\-syslog\fR: Do not write error messages to
|
||||
syslog\&. Messages are written to the default error log file (\fIhost_name\fR\&.err
|
||||
in the data directory), or to a named file if the
|
||||
\fB\-\-log\-error\fR
|
||||
option is given\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-\-log\-error=\fR\fB\fIfile_name\fR\fR: Write error messages to the named error file\&.
|
||||
.RE
|
||||
.PP
|
||||
If none of these options is given, the default is
|
||||
\fB\-\-skip\-syslog\fR\&.
|
||||
.if n \{\
|
||||
.sp
|
||||
.\}
|
||||
.RS 4
|
||||
.it 1 an-trap
|
||||
.nr an-no-space-flag 1
|
||||
.nr an-break-flag 1
|
||||
.br
|
||||
.ps +1
|
||||
\fBNote\fR
|
||||
.ps -1
|
||||
.br
|
||||
.PP
|
||||
In MySQL 5\&.1\&.20
|
||||
\fIonly\fR, the default is
|
||||
\fB\-\-syslog\fR\&. This differs from logging behavior for other versions of MySQL, for which the default is to write messages to the default error log file\&.
|
||||
.sp .5v
|
||||
.RE
|
||||
.PP
|
||||
If
|
||||
\fB\-\-syslog\fR
|
||||
and
|
||||
\fB\-\-log\-error\fR
|
||||
are both given, a warning is issued and
|
||||
\fB\-\-log\-error\fR
|
||||
takes precedence\&.
|
||||
.PP
|
||||
When
|
||||
\fBmysqld_safe\fR
|
||||
writes a message, notices go to the logging destination (syslog
|
||||
or the error log file) and
|
||||
stdout\&. Errors go to the logging destination and
|
||||
stderr\&.
|
||||
.PP
|
||||
Before MySQL 5\&.1\&.20, error logging is controlled only with the
|
||||
\fB\-\-log\-error\fR
|
||||
option\&. If it is given, messages go to the named error file\&. Otherwise, messages go to the default error file\&.
|
||||
.PP
|
||||
Normally, you should not edit the
|
||||
\fBmysqld_safe\fR
|
||||
script\&. Instead, configure
|
||||
\fBmysqld_safe\fR
|
||||
by using command\-line options or options in the
|
||||
[mysqld_safe]
|
||||
section of a
|
||||
my\&.cnf
|
||||
option file\&. In rare cases, it might be necessary to edit
|
||||
\fBmysqld_safe\fR
|
||||
to get it to start the server properly\&. However, if you do this, your modified version of
|
||||
\fBmysqld_safe\fR
|
||||
might be overwritten if you upgrade MySQL in the future, so you should make a copy of your edited version that you can reinstall\&.
|
||||
.PP
|
||||
On NetWare,
|
||||
\fBmysqld_safe\fR
|
||||
is a NetWare Loadable Module (NLM) that is ported from the original Unix shell script\&. It starts the server as follows:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 1.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 1." 4.2
|
||||
.\}
|
||||
Runs a number of system and option checks\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 2.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 2." 4.2
|
||||
.\}
|
||||
Runs a check on
|
||||
MyISAM
|
||||
tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 3.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 3." 4.2
|
||||
.\}
|
||||
Provides a screen presence for the MySQL server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 4.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 4." 4.2
|
||||
.\}
|
||||
Starts
|
||||
\fBmysqld\fR, monitors it, and restarts it if it terminates in error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 5.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 5." 4.2
|
||||
.\}
|
||||
Sends error messages from
|
||||
\fBmysqld\fR
|
||||
to the
|
||||
\fIhost_name\fR\&.err
|
||||
file in the data directory\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04' 6.\h'+01'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP " 6." 4.2
|
||||
.\}
|
||||
Sends
|
||||
\fBmysqld_safe\fR
|
||||
screen output to the
|
||||
\fIhost_name\fR\&.safe
|
||||
file in the data directory\&.
|
||||
.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/).
|
||||
2390
build/lib/mysql/man/man1/mysqldump.1
Normal file
2390
build/lib/mysql/man/man1/mysqldump.1
Normal file
File diff suppressed because it is too large
Load Diff
339
build/lib/mysql/man/man1/mysqldumpslow.1
Normal file
339
build/lib/mysql/man/man1/mysqldumpslow.1
Normal file
@@ -0,0 +1,339 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqldumpslow\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 "\FBMYSQLDUMPSLOW\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqldumpslow
|
||||
.SH "NAME"
|
||||
mysqldumpslow \- Summarize slow query log files
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqldumpslow\ [\fR\fBoptions\fR\fB]\ [\fR\fB\fIlog_file\fR\fR\fB\ \&.\&.\&.]\fR\ 'u
|
||||
\fBmysqldumpslow [\fR\fBoptions\fR\fB] [\fR\fB\fIlog_file\fR\fR\fB \&.\&.\&.]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The MySQL slow query log contains information about queries that take a long time to execute (see
|
||||
Section\ \&5.2.5, \(lqThe Slow Query Log\(rq)\&.
|
||||
\fBmysqldumpslow\fR
|
||||
parses MySQL slow query log files and prints a summary of their contents\&.
|
||||
.PP
|
||||
Normally,
|
||||
\fBmysqldumpslow\fR
|
||||
groups queries that are similar except for the particular values of number and string data values\&. It
|
||||
\(lqabstracts\(rq
|
||||
these values to
|
||||
N
|
||||
and
|
||||
\*(AqS\*(Aq
|
||||
when displaying summary output\&. The
|
||||
\fB\-a\fR
|
||||
and
|
||||
\fB\-n\fR
|
||||
options can be used to modify value abstracting behavior\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqldumpslow\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqldumpslow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIlog_file\fR\fR\fB \&.\&.\&.]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysqldumpslow\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqldumpslow: help option
|
||||
.\" help option: mysqldumpslow
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
\fB\-a\fR
|
||||
.sp
|
||||
Do not abstract all numbers to
|
||||
N
|
||||
and strings to
|
||||
\*(AqS\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqldumpslow: debug option
|
||||
.\" debug option: mysqldumpslow
|
||||
\fB\-\-debug\fR,
|
||||
\fB\-d\fR
|
||||
.sp
|
||||
Run in debug mode\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-g \fR\fB\fIpattern\fR\fR
|
||||
.sp
|
||||
Consider only queries that match the (\fBgrep\fR\-style) pattern\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Host name of MySQL server for
|
||||
*\-slow\&.log
|
||||
file name\&. The value can contain a wildcard\&. The default is
|
||||
*
|
||||
(match all)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-i \fR\fB\fIname\fR\fR
|
||||
.sp
|
||||
Name of server instance (if using
|
||||
\fBmysql\&.server\fR
|
||||
startup script)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-l\fR
|
||||
.sp
|
||||
Do not subtract lock time from total time\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-n \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Abstract numbers with at least
|
||||
\fIN\fR
|
||||
digits within names\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-r\fR
|
||||
.sp
|
||||
Reverse the sort order\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-s \fR\fB\fIsort_type\fR\fR
|
||||
.sp
|
||||
How to sort the output\&. The value of
|
||||
\fIsort_type\fR
|
||||
should be chosen from the following list:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
t,
|
||||
at: Sort by query time or average query time
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
l,
|
||||
al: Sort by lock time or average lock time
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
r,
|
||||
ar: Sort by rows sent or average rows sent
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
c: Sort by count
|
||||
.RE
|
||||
.sp
|
||||
By default,
|
||||
\fBmysqldumpslow\fR
|
||||
sorts by average query time (equivalent to
|
||||
\fB\-s at\fR)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-t \fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Display only the first
|
||||
\fIN\fR
|
||||
queries in the output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqldumpslow: verbose option
|
||||
.\" verbose option: mysqldumpslow
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.PP
|
||||
Example of usage:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqldumpslow\fR
|
||||
Reading mysql slow query log from /usr/local/mysql/data/mysqld51\-apple\-slow\&.log
|
||||
Count: 1 Time=4\&.32s (4s) Lock=0\&.00s (0s) Rows=0\&.0 (0), root[root]@localhost
|
||||
insert into t2 select * from t1
|
||||
Count: 3 Time=2\&.53s (7s) Lock=0\&.00s (0s) Rows=0\&.0 (0), root[root]@localhost
|
||||
insert into t2 select * from t1 limit N
|
||||
Count: 3 Time=2\&.13s (6s) Lock=0\&.00s (0s) Rows=0\&.0 (0), root[root]@localhost
|
||||
insert into t1 select * from t1
|
||||
.fi
|
||||
.if n \{\
|
||||
.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/).
|
||||
539
build/lib/mysql/man/man1/mysqlhotcopy.1
Normal file
539
build/lib/mysql/man/man1/mysqlhotcopy.1
Normal file
@@ -0,0 +1,539 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlhotcopy\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 "\FBMYSQLHOTCOPY\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlhotcopy
|
||||
.\" dumping: databases and tables
|
||||
.\" backups: databases and tables
|
||||
.\" databases: dumping
|
||||
.\" tables: dumping
|
||||
.SH "NAME"
|
||||
mysqlhotcopy \- a database backup program
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlhotcopy\ \fR\fB\fIarguments\fR\fR\ 'u
|
||||
\fBmysqlhotcopy \fR\fB\fIarguments\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBmysqlhotcopy\fR
|
||||
is a Perl script that was originally written and contributed by Tim Bunce\&. It uses
|
||||
FLUSH TABLES,
|
||||
LOCK TABLES, and
|
||||
cp
|
||||
or
|
||||
scp
|
||||
to make a database backup\&. It is a fast way to make a backup of the database or single tables, but it can be run only on the same machine where the database directories are located\&.
|
||||
\fBmysqlhotcopy\fR
|
||||
works only for backing up
|
||||
MyISAM
|
||||
and
|
||||
ARCHIVE
|
||||
tables\&. It runs on Unix and NetWare\&.
|
||||
.PP
|
||||
To use
|
||||
\fBmysqlhotcopy\fR, you must have read access to the files for the tables that you are backing up, the
|
||||
SELECT
|
||||
privilege for those tables, the
|
||||
RELOAD
|
||||
privilege (to be able to execute
|
||||
FLUSH TABLES), and the
|
||||
LOCK TABLES
|
||||
privilege (to be able to lock the tables)\&.
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlhotcopy \fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fI/path/to/new_directory\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlhotcopy \fR\fB\fIdb_name_1\fR\fR\fB \&.\&.\&. \fR\fB\fIdb_name_n\fR\fR\fB \fR\fB\fI/path/to/new_directory\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
Back up tables in the given database that match a regular expression:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlhotcopy \fR\fB\fIdb_name\fR\fR\fB\&./\fR\fB\fIregex\fR\fR\fB/\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The regular expression for the table name can be negated by prefixing it with a tilde (\(lq~\(rq):
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlhotcopy \fR\fB\fIdb_name\fR\fR\fB\&./~\fR\fB\fIregex\fR\fR\fB/\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBmysqlhotcopy\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlhotcopy]
|
||||
and
|
||||
[client]
|
||||
groups of an option file\&. For information about option files, see
|
||||
Section\ \&4.2.3.3, \(lqUsing Option Files\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: help option
|
||||
.\" help option: mysqlhotcopy
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqlhotcopy: addtodest option
|
||||
.\" addtodest option: mysqlhotcopy
|
||||
\fB\-\-addtodest\fR
|
||||
.sp
|
||||
Do not rename target directory (if it exists); merely add files to it\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: allowold option
|
||||
.\" allowold option: mysqlhotcopy
|
||||
\fB\-\-allowold\fR
|
||||
.sp
|
||||
Do not abort if a target exists; rename it by adding an
|
||||
_old
|
||||
suffix\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: checkpoint option
|
||||
.\" checkpoint option: mysqlhotcopy
|
||||
\fB\-\-checkpoint=\fR\fB\fIdb_name\fR\fR\fB\&.\fR\fB\fItbl_name\fR\fR
|
||||
.sp
|
||||
Insert checkpoint entries into the specified database
|
||||
\fIdb_name\fR
|
||||
and table
|
||||
\fItbl_name\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: chroot option
|
||||
.\" chroot option: mysqlhotcopy
|
||||
\fB\-\-chroot=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
Base directory of the
|
||||
\fBchroot\fR
|
||||
jail in which
|
||||
\fBmysqld\fR
|
||||
operates\&. The
|
||||
\fIpath\fR
|
||||
value should match that of the
|
||||
\fB\-\-chroot\fR
|
||||
option given to
|
||||
\fBmysqld\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: debug option
|
||||
.\" debug option: mysqlhotcopy
|
||||
\fB\-\-debug\fR
|
||||
.sp
|
||||
Enable debug output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: dryrun option
|
||||
.\" dryrun option: mysqlhotcopy
|
||||
\fB\-\-dryrun\fR,
|
||||
\fB\-n\fR
|
||||
.sp
|
||||
Report actions without performing them\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: flushlog option
|
||||
.\" flushlog option: mysqlhotcopy
|
||||
\fB\-\-flushlog\fR
|
||||
.sp
|
||||
Flush logs after all tables are locked\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: host option
|
||||
.\" host option: mysqlhotcopy
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
The host name of the local host to use for making a TCP/IP connection to the local server\&. By default, the connection is made to
|
||||
localhost
|
||||
using a Unix socket file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: keepold option
|
||||
.\" keepold option: mysqlhotcopy
|
||||
\fB\-\-keepold\fR
|
||||
.sp
|
||||
Do not delete previous (renamed) target when done\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: method option
|
||||
.\" method option: mysqlhotcopy
|
||||
\fB\-\-method=\fR\fB\fIcommand\fR\fR
|
||||
.sp
|
||||
The method for copying files (cp
|
||||
or
|
||||
scp)\&. The default is
|
||||
cp\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: noindices option
|
||||
.\" noindices option: mysqlhotcopy
|
||||
\fB\-\-noindices\fR
|
||||
.sp
|
||||
Do not include full index files for
|
||||
MyISAM
|
||||
tables in the backup\&. This makes the backup smaller and faster\&. The indexes for reloaded tables can be reconstructed later with
|
||||
\fBmyisamchk \-rq\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: password option
|
||||
.\" password option: mysqlhotcopy
|
||||
\fB\-\-password=\fR\fB\fIpassword\fR\fR,
|
||||
\fB\-p\fR\fB\fIpassword\fR\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. The password value is not optional for this option, unlike for other MySQL programs\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: port option
|
||||
.\" port option: mysqlhotcopy
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use when connecting to the local server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: quiet option
|
||||
.\" quiet option: mysqlhotcopy
|
||||
\fB\-\-quiet\fR,
|
||||
\fB\-q\fR
|
||||
.sp
|
||||
Be silent except for errors\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: record_log_pos option
|
||||
.\" record_log_pos option: mysqlhotcopy
|
||||
\fB\-\-record_log_pos=\fR\fB\fIdb_name\fR\fR\fB\&.\fR\fB\fItbl_name\fR\fR
|
||||
.sp
|
||||
Record master and slave status in the specified database
|
||||
\fIdb_name\fR
|
||||
and table
|
||||
\fItbl_name\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: regexp option
|
||||
.\" regexp option: mysqlhotcopy
|
||||
\fB\-\-regexp=\fR\fB\fIexpr\fR\fR
|
||||
.sp
|
||||
Copy all databases with names that match the given regular expression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: resetmaster option
|
||||
.\" resetmaster option: mysqlhotcopy
|
||||
\fB\-\-resetmaster\fR
|
||||
.sp
|
||||
Reset the binary log after locking all the tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: resetslave option
|
||||
.\" resetslave option: mysqlhotcopy
|
||||
\fB\-\-resetslave\fR
|
||||
.sp
|
||||
Reset the
|
||||
master\&.info
|
||||
file after locking all the tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: socket option
|
||||
.\" socket option: mysqlhotcopy
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The Unix socket file to use for connections to
|
||||
localhost\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: suffix option
|
||||
.\" suffix option: mysqlhotcopy
|
||||
\fB\-\-suffix=\fR\fB\fIstr\fR\fR
|
||||
.sp
|
||||
The suffix to use for names of copied databases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: tmpdir option
|
||||
.\" tmpdir option: mysqlhotcopy
|
||||
\fB\-\-tmpdir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The temporary directory\&. The default is
|
||||
/tmp\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlhotcopy: user option
|
||||
.\" user option: mysqlhotcopy
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.PP
|
||||
Use
|
||||
perldoc
|
||||
for additional
|
||||
\fBmysqlhotcopy\fR
|
||||
documentation, including information about the structure of the tables needed for the
|
||||
\fB\-\-checkpoint\fR
|
||||
and
|
||||
\fB\-\-record_log_pos\fR
|
||||
options:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBperldoc mysqlhotcopy\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.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/).
|
||||
692
build/lib/mysql/man/man1/mysqlimport.1
Normal file
692
build/lib/mysql/man/man1/mysqlimport.1
Normal file
@@ -0,0 +1,692 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlimport\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 "\FBMYSQLIMPORT\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlimport
|
||||
.\" importing: data
|
||||
.\" data: importing
|
||||
.\" files: text
|
||||
.\" text files: importing
|
||||
.SH "NAME"
|
||||
mysqlimport \- a data import program
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlimport\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIdb_name\fR\fR\fB\ \fR\fB\fItextfile1\fR\fR\fB\ \&.\&.\&.\fR\ 'u
|
||||
\fBmysqlimport [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB \fR\fB\fItextfile1\fR\fR\fB \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysqlimport\fR
|
||||
client provides a command\-line interface to the
|
||||
LOAD DATA INFILE
|
||||
SQL statement\&. Most options to
|
||||
\fBmysqlimport\fR
|
||||
correspond directly to clauses of
|
||||
LOAD DATA INFILE
|
||||
syntax\&. See
|
||||
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqlimport\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlimport [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIdb_name\fR\fR\fB \fR\fB\fItextfile1\fR\fR\fB [\fR\fB\fItextfile2\fR\fR\fB \&.\&.\&.]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
For each text file named on the command line,
|
||||
\fBmysqlimport\fR
|
||||
strips any extension from the file name and uses the result to determine the name of the table into which to import the file\*(Aqs contents\&. For example, files named
|
||||
patient\&.txt,
|
||||
patient\&.text, and
|
||||
patient
|
||||
all would be imported into a table named
|
||||
patient\&.
|
||||
.PP
|
||||
\fBmysqlimport\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlimport]
|
||||
and
|
||||
[client]
|
||||
groups of an option file\&.
|
||||
\fBmysqlimport\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: help option
|
||||
.\" help option: mysqlimport
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqlimport: bind-address option
|
||||
.\" bind-address option: mysqlimport
|
||||
\fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
|
||||
.sp
|
||||
On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
|
||||
.sp
|
||||
This option is supported only in the version of
|
||||
\fBmysqlimport\fR
|
||||
that is supplied with MySQL Cluster, beginning with MySQL Cluster NDB 6\&.3\&.4\&. It is not available in standard MySQL 5\&.1 releases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: character-sets-dir option
|
||||
.\" character-sets-dir option: mysqlimport
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: columns option
|
||||
.\" columns option: mysqlimport
|
||||
\fB\-\-columns=\fR\fB\fIcolumn_list\fR\fR,
|
||||
\fB\-c \fR\fB\fIcolumn_list\fR\fR
|
||||
.sp
|
||||
This option takes a comma\-separated list of column names as its value\&. The order of the column names indicates how to match data file columns with table columns\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: compress option
|
||||
.\" compress option: mysqlimport
|
||||
\fB\-\-compress\fR,
|
||||
\fB\-C\fR
|
||||
.sp
|
||||
Compress all information sent between the client and the server if both support compression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: debug option
|
||||
.\" debug option: mysqlimport
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:o\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: debug-check option
|
||||
.\" debug-check option: mysqlimport
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: debug-info option
|
||||
.\" debug-info option: mysqlimport
|
||||
\fB\-\-debug\-info\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: default-character-set option
|
||||
.\" default-character-set option: mysqlimport
|
||||
\fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
|
||||
.sp
|
||||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.sp
|
||||
Some options, such as
|
||||
\fB\-\-opt\fR, automatically enable
|
||||
\fB\-\-lock\-tables\fR\&. If you want to override this, use
|
||||
\fB\-\-skip\-lock\-tables\fR
|
||||
at the end of the option list\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: delete option
|
||||
.\" delete option: mysqlimport
|
||||
\fB\-\-delete\fR,
|
||||
\fB\-D\fR
|
||||
.sp
|
||||
Empty the table before importing the text file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqldump: fields-terminated-by option
|
||||
.\" fields-terminated-by option: mysqldump
|
||||
\fB\-\-fields\-terminated\-by=\&.\&.\&.\fR,
|
||||
.\" mysqldump: fields-enclosed-by option
|
||||
.\" fields-enclosed-by option: mysqldump
|
||||
\fB\-\-fields\-enclosed\-by=\&.\&.\&.\fR,
|
||||
.\" mysqldump: fields-optionally-enclosed-by option
|
||||
.\" fields-optionally-enclosed-by option: mysqldump
|
||||
\fB\-\-fields\-optionally\-enclosed\-by=\&.\&.\&.\fR,
|
||||
.\" mysqldump: fields-escaped-by option
|
||||
.\" fields-escaped-by option: mysqldump
|
||||
\fB\-\-fields\-escaped\-by=\&.\&.\&.\fR
|
||||
.sp
|
||||
These options have the same meaning as the corresponding clauses for
|
||||
LOAD DATA INFILE\&. See
|
||||
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: force option
|
||||
.\" force option: mysqlimport
|
||||
\fB\-\-force\fR,
|
||||
\fB\-f\fR
|
||||
.sp
|
||||
Ignore errors\&. For example, if a table for a text file does not exist, continue processing any remaining files\&. Without
|
||||
\fB\-\-force\fR,
|
||||
\fBmysqlimport\fR
|
||||
exits if a table does not exist\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: host option
|
||||
.\" host option: mysqlimport
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Import data to the MySQL server on the given host\&. The default host is
|
||||
localhost\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: ignore option
|
||||
.\" ignore option: mysqlimport
|
||||
\fB\-\-ignore\fR,
|
||||
\fB\-i\fR
|
||||
.sp
|
||||
See the description for the
|
||||
\fB\-\-replace\fR
|
||||
option\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: ignore-lines option
|
||||
.\" ignore-lines option: mysqlimport
|
||||
\fB\-\-ignore\-lines=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Ignore the first
|
||||
\fIN\fR
|
||||
lines of the data file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqldump: lines-terminated-by option
|
||||
.\" lines-terminated-by option: mysqldump
|
||||
\fB\-\-lines\-terminated\-by=\&.\&.\&.\fR
|
||||
.sp
|
||||
This option has the same meaning as the corresponding clause for
|
||||
LOAD DATA INFILE\&. For example, to import Windows files that have lines terminated with carriage return/linefeed pairs, use
|
||||
\fB\-\-lines\-terminated\-by="\er\en"\fR\&. (You might have to double the backslashes, depending on the escaping conventions of your command interpreter\&.) See
|
||||
Section\ \&13.2.6, \(lqLOAD DATA INFILE Syntax\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: local option
|
||||
.\" local option: mysqlimport
|
||||
\fB\-\-local\fR,
|
||||
\fB\-L\fR
|
||||
.sp
|
||||
Read input files locally from the client host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: lock-tables option
|
||||
.\" lock-tables option: mysqlimport
|
||||
\fB\-\-lock\-tables\fR,
|
||||
\fB\-l\fR
|
||||
.sp
|
||||
Lock
|
||||
\fIall\fR
|
||||
tables for writing before processing any text files\&. This ensures that all tables are synchronized on the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: low-priority option
|
||||
.\" low-priority option: mysqlimport
|
||||
\fB\-\-low\-priority\fR
|
||||
.sp
|
||||
Use
|
||||
LOW_PRIORITY
|
||||
when loading the table\&. This affects only storage engines that use only table\-level locking (such as
|
||||
MyISAM,
|
||||
MEMORY, and
|
||||
MERGE)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: password option
|
||||
.\" password option: mysqlimport
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
|
||||
\fIcannot\fR
|
||||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line,
|
||||
\fBmysqlimport\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: pipe option
|
||||
.\" pipe option: mysqlimport
|
||||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: port option
|
||||
.\" port option: mysqlimport
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: protocol option
|
||||
.\" protocol option: mysqlimport
|
||||
\fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
|
||||
.sp
|
||||
The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
|
||||
Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: replace option
|
||||
.\" replace option: mysqlimport
|
||||
\fB\-\-replace\fR,
|
||||
\fB\-r\fR
|
||||
.sp
|
||||
The
|
||||
\fB\-\-replace\fR
|
||||
and
|
||||
\fB\-\-ignore\fR
|
||||
options control handling of input rows that duplicate existing rows on unique key values\&. If you specify
|
||||
\fB\-\-replace\fR, new rows replace existing rows that have the same unique key value\&. If you specify
|
||||
\fB\-\-ignore\fR, input rows that duplicate an existing row on a unique key value are skipped\&. If you do not specify either option, an error occurs when a duplicate key value is found, and the rest of the text file is ignored\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: silent option
|
||||
.\" silent option: mysqlimport
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Silent mode\&. Produce output only when errors occur\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: socket option
|
||||
.\" socket option: mysqlimport
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: SSL options
|
||||
.\" SSL options: mysqlimport
|
||||
\fB\-\-ssl*\fR
|
||||
.sp
|
||||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&6.3.6.4, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: user option
|
||||
.\" user option: mysqlimport
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: use-threads option
|
||||
.\" use-threads option: mysqlimport
|
||||
\fB\-\-use\-threads=\fR\fB\fIN\fR\fR
|
||||
.sp
|
||||
Load files in parallel using
|
||||
\fIN\fR
|
||||
threads\&. This option was added in MySQL 5\&.1\&.7\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: verbose option
|
||||
.\" verbose option: mysqlimport
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlimport: version option
|
||||
.\" version option: mysqlimport
|
||||
\fB\-\-version\fR,
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.PP
|
||||
Here is a sample session that demonstrates use of
|
||||
\fBmysqlimport\fR:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysql \-e \*(AqCREATE TABLE imptest(id INT, n VARCHAR(30))\*(Aq test\fR
|
||||
shell> \fBed\fR
|
||||
a
|
||||
100 Max Sydow
|
||||
101 Count Dracula
|
||||
\&.
|
||||
w imptest\&.txt
|
||||
32
|
||||
q
|
||||
shell> \fBod \-c imptest\&.txt\fR
|
||||
0000000 1 0 0 \et M a x S y d o w \en 1 0
|
||||
0000020 1 \et C o u n t D r a c u l a \en
|
||||
0000040
|
||||
shell> \fBmysqlimport \-\-local test imptest\&.txt\fR
|
||||
test\&.imptest: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0
|
||||
shell> \fBmysql \-e \*(AqSELECT * FROM imptest\*(Aq test\fR
|
||||
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
||||
| id | n |
|
||||
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
||||
| 100 | Max Sydow |
|
||||
| 101 | Count Dracula |
|
||||
+\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
||||
.fi
|
||||
.if n \{\
|
||||
.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/).
|
||||
15
build/lib/mysql/man/man1/mysqlman.1
Normal file
15
build/lib/mysql/man/man1/mysqlman.1
Normal file
@@ -0,0 +1,15 @@
|
||||
.TH mysqlman 1 "20 July 2004" "MySQL" "MySQL database"
|
||||
.SH NAME
|
||||
mysqlman \- default man page for mysql
|
||||
.SH "DESCRIPTION"
|
||||
Certain executables distributed with the MySQL database management system do
|
||||
not have specific man pages.
|
||||
.SH "SEE ALSO"
|
||||
In most cases, you can run the executable from the command line with a "--help"
|
||||
argument to display a brief summary of the executable's arguments and function.
|
||||
For more information about MySQL, 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/mysql/en
|
||||
.SH BUGS
|
||||
Please refer to http://bugs.mysql.com/ to report bugs.
|
||||
.\" end of man page
|
||||
527
build/lib/mysql/man/man1/mysqlshow.1
Normal file
527
build/lib/mysql/man/man1/mysqlshow.1
Normal file
@@ -0,0 +1,527 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqlshow\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 "\FBMYSQLSHOW\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqlshow
|
||||
.\" databases: displaying
|
||||
.\" displaying: database information
|
||||
.\" tables: displaying
|
||||
.\" columns: displaying
|
||||
.\" showing: database information
|
||||
.SH "NAME"
|
||||
mysqlshow \- display database, table, and column information
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqlshow\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB\ [\fR\fB\fItbl_name\fR\fR\fB\ [\fR\fB\fIcol_name\fR\fR\fB]]]\fR\ 'u
|
||||
\fBmysqlshow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB [\fR\fB\fIcol_name\fR\fR\fB]]]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysqlshow\fR
|
||||
client can be used to quickly see which databases exist, their tables, or a table\*(Aqs columns or indexes\&.
|
||||
.PP
|
||||
\fBmysqlshow\fR
|
||||
provides a command\-line interface to several SQL
|
||||
SHOW
|
||||
statements\&. See
|
||||
Section\ \&13.7.5, \(lqSHOW Syntax\(rq\&. The same information can be obtained by using those statements directly\&. For example, you can issue them from the
|
||||
\fBmysql\fR
|
||||
client program\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBmysqlshow\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqlshow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB [\fR\fB\fIcol_name\fR\fR\fB]]]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If no database is given, a list of database names is shown\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If no table is given, all matching tables in the database are shown\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If no column is given, all matching columns and column types in the table are shown\&.
|
||||
.RE
|
||||
.PP
|
||||
The output displays only the names of those databases, tables, or columns for which you have some privileges\&.
|
||||
.PP
|
||||
If the last argument contains shell or SQL wildcard characters (\(lq*\(rq,
|
||||
\(lq?\(rq,
|
||||
\(lq%\(rq, or
|
||||
\(lq_\(rq), only those names that are matched by the wildcard are shown\&. If a database name contains any underscores, those should be escaped with a backslash (some Unix shells require two) to get a list of the proper tables or columns\&.
|
||||
\(lq*\(rq
|
||||
and
|
||||
\(lq?\(rq
|
||||
characters are converted into SQL
|
||||
\(lq%\(rq
|
||||
and
|
||||
\(lq_\(rq
|
||||
wildcard characters\&. This might cause some confusion when you try to display the columns for a table with a
|
||||
\(lq_\(rq
|
||||
in the name, because in this case,
|
||||
\fBmysqlshow\fR
|
||||
shows you only the table names that match the pattern\&. This is easily fixed by adding an extra
|
||||
\(lq%\(rq
|
||||
last on the command line as a separate argument\&.
|
||||
.PP
|
||||
\fBmysqlshow\fR
|
||||
supports the following options, which can be specified on the command line or in the
|
||||
[mysqlshow]
|
||||
and
|
||||
[client]
|
||||
groups of an option file\&.
|
||||
\fBmysqlshow\fR
|
||||
also supports the options for processing option files described at
|
||||
Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: help option
|
||||
.\" help option: mysqlshow
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqlshow: bind-address option
|
||||
.\" bind-address option: mysqlshow
|
||||
\fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
|
||||
.sp
|
||||
On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
|
||||
.sp
|
||||
This option is supported only in the version of
|
||||
\fBmysqlshow\fR
|
||||
that is supplied with MySQL Cluster, beginning with MySQL Cluster NDB 6\&.3\&.4\&. It is not available in standard MySQL 5\&.1 releases\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: character-sets-dir option
|
||||
.\" character-sets-dir option: mysqlshow
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: compress option
|
||||
.\" compress option: mysqlshow
|
||||
\fB\-\-compress\fR,
|
||||
\fB\-C\fR
|
||||
.sp
|
||||
Compress all information sent between the client and the server if both support compression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: count option
|
||||
.\" count option: mysqlshow
|
||||
\fB\-\-count\fR
|
||||
.sp
|
||||
Show the number of rows per table\&. This can be slow for non\-MyISAM
|
||||
tables\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: debug option
|
||||
.\" debug option: mysqlshow
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log\&. A typical
|
||||
\fIdebug_options\fR
|
||||
string is
|
||||
\*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
|
||||
\*(Aqd:t:o\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: debug-check option
|
||||
.\" debug-check option: mysqlshow
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: debug-info option
|
||||
.\" debug-info option: mysqlshow
|
||||
\fB\-\-debug\-info\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: default-character-set option
|
||||
.\" default-character-set option: mysqlshow
|
||||
\fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
|
||||
.sp
|
||||
Use
|
||||
\fIcharset_name\fR
|
||||
as the default character set\&. See
|
||||
Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: host option
|
||||
.\" host option: mysqlshow
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: keys option
|
||||
.\" keys option: mysqlshow
|
||||
\fB\-\-keys\fR,
|
||||
\fB\-k\fR
|
||||
.sp
|
||||
Show table indexes\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: password option
|
||||
.\" password option: mysqlshow
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
|
||||
\fIcannot\fR
|
||||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line,
|
||||
\fBmysqlshow\fR
|
||||
prompts for one\&.
|
||||
.sp
|
||||
Specifying a password on the command line should be considered insecure\&. See
|
||||
Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: pipe option
|
||||
.\" pipe option: mysqlshow
|
||||
\fB\-\-pipe\fR,
|
||||
\fB\-W\fR
|
||||
.sp
|
||||
On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: port option
|
||||
.\" port option: mysqlshow
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: protocol option
|
||||
.\" protocol option: mysqlshow
|
||||
\fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
|
||||
.sp
|
||||
The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
|
||||
Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: show-table-type option
|
||||
.\" show-table-type option: mysqlshow
|
||||
\fB\-\-show\-table\-type\fR,
|
||||
\fB\-t\fR
|
||||
.sp
|
||||
Show a column indicating the table type, as in
|
||||
SHOW FULL TABLES\&. The type is
|
||||
BASE TABLE
|
||||
or
|
||||
VIEW\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: socket option
|
||||
.\" socket option: mysqlshow
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
For connections to
|
||||
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: SSL options
|
||||
.\" SSL options: mysqlshow
|
||||
\fB\-\-ssl*\fR
|
||||
.sp
|
||||
Options that begin with
|
||||
\fB\-\-ssl\fR
|
||||
specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
|
||||
Section\ \&6.3.6.4, \(lqSSL Command Options\(rq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: status option
|
||||
.\" status option: mysqlshow
|
||||
\fB\-\-status\fR,
|
||||
\fB\-i\fR
|
||||
.sp
|
||||
Display extra information about each table\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: user option
|
||||
.\" user option: mysqlshow
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: verbose option
|
||||
.\" verbose option: mysqlshow
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&. This option can be used multiple times to increase the amount of information\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqlshow: version option
|
||||
.\" version option: mysqlshow
|
||||
\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/).
|
||||
1057
build/lib/mysql/man/man1/mysqlslap.1
Normal file
1057
build/lib/mysql/man/man1/mysqlslap.1
Normal file
File diff suppressed because it is too large
Load Diff
931
build/lib/mysql/man/man1/mysqltest.1
Normal file
931
build/lib/mysql/man/man1/mysqltest.1
Normal file
@@ -0,0 +1,931 @@
|
||||
'\" t
|
||||
.\" Title: \fBmysqltest\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
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "\FBMYSQLTEST\FR" "1" "11/04/2013" "MySQL" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" mysqltest
|
||||
.\" mysqltest_embedded
|
||||
.SH "NAME"
|
||||
mysqltest \- program to run test cases
|
||||
.br
|
||||
mysqltest_embedded \- program to run embedded test cases
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBmysqltest\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB]\fR\ 'u
|
||||
\fBmysqltest [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB]\fR
|
||||
.HP \w'\fBmysqltest_embedded\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB]\fR\ 'u
|
||||
\fBmysqltest_embedded [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBmysqltest\fR
|
||||
program runs a test case against a MySQL server and optionally compares the output with a result file\&. This program reads input written in a special test language\&. Typically, you invoke
|
||||
\fBmysqltest\fR
|
||||
using
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
rather than invoking it directly\&.
|
||||
.PP
|
||||
\fBmysqltest_embedded\fR
|
||||
is similar but is built with support for the
|
||||
libmysqld
|
||||
embedded server\&.
|
||||
.PP
|
||||
Features of
|
||||
\fBmysqltest\fR:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Can send SQL statements to MySQL servers for execution
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Can execute external shell commands
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Can test whether the result from an SQL statement or shell command is as expected
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Can connect to one or more standalone
|
||||
\fBmysqld\fR
|
||||
servers and switch between connections
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Can connect to an embedded server (libmysqld), if MySQL is compiled with support for
|
||||
libmysqld\&. (In this case, the executable is named
|
||||
\fBmysqltest_embedded\fR
|
||||
rather than
|
||||
\fBmysqltest\fR\&.)
|
||||
.RE
|
||||
.PP
|
||||
By default,
|
||||
\fBmysqltest\fR
|
||||
reads the test case on the standard input\&. To run
|
||||
\fBmysqltest\fR
|
||||
this way, you normally invoke it like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBmysqltest [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB] < \fR\fB\fItest_file\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
You can also name the test case file with a
|
||||
\fB\-\-test\-file=\fR\fB\fIfile_name\fR\fR
|
||||
option\&.
|
||||
.PP
|
||||
The exit value from
|
||||
\fBmysqltest\fR
|
||||
is 0 for success, 1 for failure, and 62 if it skips the test case (for example, if after checking some preconditions it decides not to run the test)\&.
|
||||
.PP
|
||||
\fBmysqltest\fR
|
||||
supports the following options:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: help option
|
||||
.\" help option: mysqltest
|
||||
\fB\-\-help\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
|
||||
.\}
|
||||
.\" mysqltest: basedir option
|
||||
.\" basedir option: mysqltest
|
||||
\fB\-\-basedir=\fR\fB\fIdir_name\fR\fR,
|
||||
\fB\-b \fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The base directory for tests\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: character-sets-dir option
|
||||
.\" character-sets-dir option: mysqltest
|
||||
\fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory where character sets are installed\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: compress option
|
||||
.\" compress option: mysqltest
|
||||
\fB\-\-compress\fR,
|
||||
\fB\-C\fR
|
||||
.sp
|
||||
Compress all information sent between the client and the server if both support compression\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: currsor-protocol option
|
||||
.\" cursor-protocol option: mysqltest
|
||||
\fB\-\-cursor\-protocol\fR
|
||||
.sp
|
||||
Use cursors for prepared statements\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: database option
|
||||
.\" database option: mysqltest
|
||||
\fB\-\-database=\fR\fB\fIdb_name\fR\fR,
|
||||
\fB\-D \fR\fB\fIdb_name\fR\fR
|
||||
.sp
|
||||
The default database to use\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: debug option
|
||||
.\" debug option: mysqltest
|
||||
\fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
|
||||
\fB\-#[\fR\fB\fIdebug_options\fR\fR\fB]\fR
|
||||
.sp
|
||||
Write a debugging log if MySQL is built with debugging support\&. The default
|
||||
\fIdebug_options\fR
|
||||
value is
|
||||
\*(Aqd:t:S:i:O,/tmp/mysqltest\&.trace\*(Aq\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: debug-check option
|
||||
.\" debug-check option: mysqltest
|
||||
\fB\-\-debug\-check\fR
|
||||
.sp
|
||||
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
|
||||
.\}
|
||||
.\" mysqltest: debug-info option
|
||||
.\" debug-info option: mysqltest
|
||||
\fB\-\-debug\-info\fR
|
||||
.sp
|
||||
Print debugging information and memory and CPU usage statistics when the program exits\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: host option
|
||||
.\" host option: mysqltest
|
||||
\fB\-\-host=\fR\fB\fIhost_name\fR\fR,
|
||||
\fB\-h \fR\fB\fIhost_name\fR\fR
|
||||
.sp
|
||||
Connect to the MySQL server on the given host\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: include option
|
||||
.\" include option: mysqltest
|
||||
\fB\-\-include=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-i \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Include the contents of the given file before processing the contents of the test file\&. The included file should have the same format as other
|
||||
\fBmysqltest\fR
|
||||
test files\&. This option has the same effect as putting a
|
||||
\-\-source \fIfile_name\fR
|
||||
command as the first line of the test file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: logdir option
|
||||
.\" logdir option: mysqltest
|
||||
\fB\-\-logdir=\fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The directory to use for log files\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: mark-progress option
|
||||
.\" mark-progress option: mysqltest
|
||||
\fB\-\-mark\-progress\fR
|
||||
.sp
|
||||
Write the line number and elapsed time to
|
||||
\fItest_file\fR\&.progress\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: max-connect-retries option
|
||||
.\" max-connect-retries option: mysqltest
|
||||
\fB\-\-max\-connect\-retries=\fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
The maximum number of connection attempts when connecting to server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: max-connections option
|
||||
.\" max-connections option: mysqltest
|
||||
\fB\-\-max\-connections=\fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
The maximum number of simultaneous server connections per client (that is, per test)\&. If not set, the maximum is 128\&. Minimum allowed limit is 8, maximum is 5120\&.
|
||||
.sp
|
||||
This option is available from MySQL 5\&.1\&.45\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: no-defaults option
|
||||
.\" no-defaults option: mysqltest
|
||||
\fB\-\-no\-defaults\fR
|
||||
.sp
|
||||
Do not read default options from any option files\&. If used, this must be the first option\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: plugin-dir option
|
||||
.\" plugin-dir option: mysqltest
|
||||
\fB\-\-plugin\-dir=\fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The directory in which to look for plugins\&. It may be necessary to specify this option if the
|
||||
\fIdefault_auth\fR
|
||||
argument is used for the
|
||||
connect()
|
||||
command to specify an authentication plugin but
|
||||
\fBmysqltest\fR
|
||||
does not find it\&. This option was added in MySQL 5\&.5\&.7\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: password option
|
||||
.\" password option: mysqltest
|
||||
\fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
|
||||
\fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
|
||||
.sp
|
||||
The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
|
||||
\fIcannot\fR
|
||||
have a space between the option and the password\&. If you omit the
|
||||
\fIpassword\fR
|
||||
value following the
|
||||
\fB\-\-password\fR
|
||||
or
|
||||
\fB\-p\fR
|
||||
option on the command line, you are prompted for one\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: port option
|
||||
.\" port option: mysqltest
|
||||
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
|
||||
\fB\-P \fR\fB\fIport_num\fR\fR
|
||||
.sp
|
||||
The TCP/IP port number to use for the connection\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: protocol option
|
||||
.\" protocol option: mysqltest
|
||||
\fB\-\-protocol=\fR\fB{TCP|SOCKET|PIPE|MEMORY}\fR
|
||||
.sp
|
||||
Choose the protocol for communication with the server\&.
|
||||
SOCKET
|
||||
is default\&.
|
||||
.sp
|
||||
The
|
||||
\fB\-\-protocol\fR
|
||||
option is available from MySQL 5\&.1\&.51\&. It is ignored if running with the embedded server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: ps-protocol option
|
||||
.\" ps-protocol option: mysqltest
|
||||
\fB\-\-ps\-protocol\fR
|
||||
.sp
|
||||
Use the prepared\-statement protocol for communication\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: quiet option
|
||||
.\" quiet option: mysqltest
|
||||
\fB\-\-quiet\fR
|
||||
.sp
|
||||
Suppress all normal output\&. This is a synonym for
|
||||
.\" mysqltest: silent option
|
||||
.\" silent option: mysqltest
|
||||
\fB\-\-silent\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: record option
|
||||
.\" record option: mysqltest
|
||||
\fB\-\-record\fR,
|
||||
\fB\-r\fR
|
||||
.sp
|
||||
Record the output that results from running the test file into the file named by the
|
||||
\fB\-\-result\-file\fR
|
||||
option, if that option is given\&. It is an error to use this option without also using
|
||||
\fB\-\-result\-file\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: result-file option
|
||||
.\" result-file option: mysqltest
|
||||
\fB\-\-result\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-R \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
This option specifies the file for test case expected results\&.
|
||||
\fB\-\-result\-file\fR, together with
|
||||
\fB\-\-record\fR, determines how
|
||||
\fBmysqltest\fR
|
||||
treats the test actual and expected results for a test case:
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
If the test produces no results,
|
||||
\fBmysqltest\fR
|
||||
exits with an error message to that effect, unless
|
||||
\fB\-\-result\-file\fR
|
||||
is given and the named file is an empty file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
Otherwise, if
|
||||
\fB\-\-result\-file\fR
|
||||
is not given,
|
||||
\fBmysqltest\fR
|
||||
sends test results to the standard output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
With
|
||||
\fB\-\-result\-file\fR
|
||||
but not
|
||||
\fB\-\-record\fR,
|
||||
\fBmysqltest\fR
|
||||
reads the expected results from the given file and compares them with the actual results\&. If the results do not match,
|
||||
\fBmysqltest\fR
|
||||
writes a
|
||||
\&.reject
|
||||
file in the same directory as the result file, outputs a diff of the two files, and exits with an error\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
With both
|
||||
\fB\-\-result\-file\fR
|
||||
and
|
||||
\fB\-\-record\fR,
|
||||
\fBmysqltest\fR
|
||||
updates the given file by writing the actual test results to it\&.
|
||||
.RE
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: server-arg option
|
||||
.\" server-arg option: mysqltest
|
||||
\fB\-\-server\-arg=\fR\fB\fIvalue\fR\fR,
|
||||
\fB\-A \fR\fB\fIvalue\fR\fR
|
||||
.sp
|
||||
Pass the argument as an argument to the embedded server\&. For example,
|
||||
\fB\-\-server\-arg=\-\-tmpdir=/tmp\fR
|
||||
or
|
||||
\fB\-\-server\-arg=\-\-core\fR\&. Up to 64 arguments can be given\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: server-file option
|
||||
.\" server-file option: mysqltest
|
||||
\fB\-\-server\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-F \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Read arguments for the embedded server from the given file\&. The file should contain one argument per line\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: server-public-key-path option
|
||||
.\" server-public-key-path option: mysqltest
|
||||
\fB\-\-server\-public\-key\-path=\fR\fBfile_name\fR
|
||||
.sp
|
||||
The path name to a file containing the server RSA public key\&. The file must be in PEM format\&. The public key is used for RSA encryption of the client password for connections to the server made using accounts that authenticate with the
|
||||
sha256_password
|
||||
plugin\&. This option is ignored for client accounts that do not authenticate with that plugin\&. It is also ignored if password encryption is not needed, as is the case when the client connects to the server using an SSL connection\&.
|
||||
.sp
|
||||
The server sends the public key to the client as needed, so it is not necessary to use this option for RSA password encryption to occur\&. It is more efficient to do so because then the server need not send the key\&.
|
||||
.sp
|
||||
For additional discussion regarding use of the
|
||||
sha256_password
|
||||
plugin, including how to get the RSA public key, see
|
||||
\m[blue]\fBThe SHA\-256 Authentication Plugin\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
||||
.sp
|
||||
This option is available only if MySQL was built using OpenSSL\&. It was added in MySQL 5\&.6\&.6 under the name
|
||||
\fB\-\-server\-public\-key\fR
|
||||
and renamed in 5\&.6\&.7 to
|
||||
\fB\-\-server\-public\-key\-path\fR\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: silent option
|
||||
.\" silent option: mysqltest
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Suppress all normal output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: skip-safemalloc option
|
||||
.\" skip-safemalloc option: mysqltest
|
||||
\fB\-\-skip\-safemalloc\fR
|
||||
.sp
|
||||
Do not use memory allocation checking\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: sleep option
|
||||
.\" sleep option: mysqltest
|
||||
\fB\-\-sleep=\fR\fB\fInum\fR\fR,
|
||||
\fB\-T \fR\fB\fInum\fR\fR
|
||||
.sp
|
||||
Cause all
|
||||
sleep
|
||||
commands in the test case file to sleep
|
||||
\fInum\fR
|
||||
seconds\&. This option does not affect
|
||||
real_sleep
|
||||
commands\&.
|
||||
.sp
|
||||
As of MySQL 5\&.0\&.23, an option value of 0 can be used, which effectively disables
|
||||
sleep
|
||||
commands in the test case\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: socket option
|
||||
.\" socket option: mysqltest
|
||||
\fB\-\-socket=\fR\fB\fIpath\fR\fR,
|
||||
\fB\-S \fR\fB\fIpath\fR\fR
|
||||
.sp
|
||||
The socket file to use when connecting to
|
||||
localhost
|
||||
(which is the default host)\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: sp-protocol option
|
||||
.\" sp-protocol option: mysqltest
|
||||
\fB\-\-sp\-protocol\fR
|
||||
.sp
|
||||
Execute DML statements within a stored procedure\&. For every DML statement,
|
||||
\fBmysqltest\fR
|
||||
creates and invokes a stored procedure that executes the statement rather than executing the statement directly\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: tail-lines option
|
||||
.\" tail-lines option: mysqltest
|
||||
\fB\-\-tail\-lines=\fR\fB\fInn\fR\fR
|
||||
.sp
|
||||
Specify how many lines of the result to include in the output if the test fails because an SQL statement fails\&. The default is 0, meaning no lines of result printed\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: test-file option
|
||||
.\" test-file option: mysqltest
|
||||
\fB\-\-test\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-x \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Read test input from this file\&. The default is to read from the standard input\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: timer-file option
|
||||
.\" timer-file option: mysqltest
|
||||
\fB\-\-timer\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-m \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
If given, the number of millisecond spent running the test will be written to this file\&. This is used by
|
||||
\fBmysql\-test\-run\&.pl\fR
|
||||
for its reporting\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: tmpdir option
|
||||
.\" tmpdir option: mysqltest
|
||||
\fB\-\-tmpdir=\fR\fB\fIdir_name\fR\fR,
|
||||
\fB\-t \fR\fB\fIdir_name\fR\fR
|
||||
.sp
|
||||
The temporary directory where socket files are created\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: user option
|
||||
.\" user option: mysqltest
|
||||
\fB\-\-user=\fR\fB\fIuser_name\fR\fR,
|
||||
\fB\-u \fR\fB\fIuser_name\fR\fR
|
||||
.sp
|
||||
The MySQL user name to use when connecting to the server\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: verbose option
|
||||
.\" verbose option: mysqltest
|
||||
\fB\-\-verbose\fR,
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print out more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: version option
|
||||
.\" version option: mysqltest
|
||||
\fB\-\-version\fR,
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" mysqltest: view-protocol option
|
||||
.\" view-protocol option: mysqltest
|
||||
\fB\-\-view\-protocol\fR
|
||||
.sp
|
||||
Every
|
||||
SELECT
|
||||
statement is wrapped inside a view\&. This option was added in MySQL 5\&.0\&.19\&.
|
||||
.RE
|
||||
.SH "COPYRIGHT"
|
||||
.br
|
||||
.PP
|
||||
Copyright \(co 2006, 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 "NOTES"
|
||||
.IP " 1." 4
|
||||
The SHA-256 Authentication Plugin
|
||||
.RS 4
|
||||
\%http://dev.mysql.com/doc/refman/5.6/en/sha256-authentication-plugin.html
|
||||
.RE
|
||||
.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/).
|
||||
1
build/lib/mysql/man/man1/mysqltest_embedded.1
Normal file
1
build/lib/mysql/man/man1/mysqltest_embedded.1
Normal file
@@ -0,0 +1 @@
|
||||
.so man-gpl-tmp2/mysqltest.1
|
||||
206
build/lib/mysql/man/man1/perror.1
Normal file
206
build/lib/mysql/man/man1/perror.1
Normal file
@@ -0,0 +1,206 @@
|
||||
'\" 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/).
|
||||
185
build/lib/mysql/man/man1/replace.1
Normal file
185
build/lib/mysql/man/man1/replace.1
Normal file
@@ -0,0 +1,185 @@
|
||||
'\" t
|
||||
.\" Title: \fBreplace\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 "\FBREPLACE\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" replace utility
|
||||
.\" string replacement: replace utility
|
||||
.SH "NAME"
|
||||
replace \- a string\-replacement utility
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBreplace\ \fR\fB\fIarguments\fR\fR\ 'u
|
||||
\fBreplace \fR\fB\fIarguments\fR\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBreplace\fR
|
||||
utility program changes strings in place in files or on the standard input\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBreplace\fR
|
||||
in one of the following ways:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBreplace \fR\fB\fIfrom\fR\fR\fB \fR\fB\fIto\fR\fR\fB [\fR\fB\fIfrom\fR\fR\fB \fR\fB\fIto\fR\fR\fB] \&.\&.\&. \-\- \fR\fB\fIfile_name\fR\fR\fB [\fR\fB\fIfile_name\fR\fR\fB] \&.\&.\&.\fR
|
||||
shell> \fBreplace \fR\fB\fIfrom\fR\fR\fB \fR\fB\fIto\fR\fR\fB [\fR\fB\fIfrom\fR\fR\fB \fR\fB\fIto\fR\fR\fB] \&.\&.\&. < \fR\fB\fIfile_name\fR\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fIfrom\fR
|
||||
represents a string to look for and
|
||||
\fIto\fR
|
||||
represents its replacement\&. There can be one or more pairs of strings\&.
|
||||
.PP
|
||||
Use the
|
||||
\fB\-\-\fR
|
||||
option to indicate where the string\-replacement list ends and the file names begin\&. In this case, any file named on the command line is modified in place, so you may want to make a copy of the original before converting it\&.
|
||||
\fIreplace\fR
|
||||
prints a message indicating which of the input files it actually modifies\&.
|
||||
.PP
|
||||
If the
|
||||
\fB\-\-\fR
|
||||
option is not given,
|
||||
\fBreplace\fR
|
||||
reads the standard input and writes to the standard output\&.
|
||||
.PP
|
||||
\fBreplace\fR
|
||||
uses a finite state machine to match longer strings first\&. It can be used to swap strings\&. For example, the following command swaps
|
||||
a
|
||||
and
|
||||
b
|
||||
in the given files,
|
||||
file1
|
||||
and
|
||||
file2:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBreplace a b b a \-\- file1 file2 \&.\&.\&.\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The
|
||||
\fBreplace\fR
|
||||
program is used by
|
||||
\fBmsql2mysql\fR\&. See
|
||||
\fBmsql2mysql\fR(1)\&.
|
||||
.PP
|
||||
\fBreplace\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-?\fR,
|
||||
\fB\-I\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
|
||||
.\}
|
||||
\fB\-#\fR\fB\fIdebug_options\fR\fR
|
||||
.sp
|
||||
Enable debugging\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Silent mode\&. Print less information what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\fB\-v\fR
|
||||
.sp
|
||||
Verbose mode\&. Print more information about what the program does\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
\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/).
|
||||
145
build/lib/mysql/man/man1/resolve_stack_dump.1
Normal file
145
build/lib/mysql/man/man1/resolve_stack_dump.1
Normal file
@@ -0,0 +1,145 @@
|
||||
'\" t
|
||||
.\" Title: \fBresolve_stack_dump\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 "\FBRESOLVE_STACK_DUM" "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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" resolve_stack_dump
|
||||
.SH "NAME"
|
||||
resolve_stack_dump \- resolve numeric stack trace dump to symbols
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBresolve_stack_dump\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIsymbols_file\fR\fR\fB\ [\fR\fB\fInumeric_dump_file\fR\fR\fB]\fR\ 'u
|
||||
\fBresolve_stack_dump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIsymbols_file\fR\fR\fB [\fR\fB\fInumeric_dump_file\fR\fR\fB]\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBresolve_stack_dump\fR
|
||||
resolves a numeric stack dump to symbols\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBresolve_stack_dump\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBresolve_stack_dump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIsymbols_file\fR\fR\fB [\fR\fB\fInumeric_dump_file\fR\fR\fB]\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
The symbols file should include the output from the
|
||||
\fBnm \-\-numeric\-sort mysqld\fR
|
||||
command\&. The numeric dump file should contain a numeric stack track from
|
||||
\fBmysqld\fR\&. If no numeric dump file is named on the command line, the stack trace is read from the standard input\&.
|
||||
.PP
|
||||
\fBresolve_stack_dump\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" resolve_stack_dump: help option
|
||||
.\" help option: resolve_stack_dump
|
||||
\fB\-\-help\fR,
|
||||
\fB\-h\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
|
||||
.\}
|
||||
.\" resolve_stack_dump: numeric-dump-file option
|
||||
.\" numeric-dump-file option: resolve_stack_dump
|
||||
\fB\-\-numeric\-dump\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-n \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Read the stack trace from the given file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" resolve_stack_dump: symbols-file option
|
||||
.\" symbols-file option: resolve_stack_dump
|
||||
\fB\-\-symbols\-file=\fR\fB\fIfile_name\fR\fR,
|
||||
\fB\-s \fR\fB\fIfile_name\fR\fR
|
||||
.sp
|
||||
Use the given symbols file\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" resolve_stack_dump: version option
|
||||
.\" version option: resolve_stack_dump
|
||||
\fB\-\-version\fR,
|
||||
\fB\-V\fR
|
||||
.sp
|
||||
Display version information and exit\&.
|
||||
.RE
|
||||
.PP
|
||||
For more information, see
|
||||
Section\ \&22.4.1.5, \(lqUsing a Stack Trace\(rq\&.
|
||||
.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/).
|
||||
124
build/lib/mysql/man/man1/resolveip.1
Normal file
124
build/lib/mysql/man/man1/resolveip.1
Normal file
@@ -0,0 +1,124 @@
|
||||
'\" t
|
||||
.\" Title: \fBresolveip\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 "\FBRESOLVEIP\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 *
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" resolveip
|
||||
.SH "NAME"
|
||||
resolveip \- resolve host name to IP address or vice versa
|
||||
.SH "SYNOPSIS"
|
||||
.HP \w'\fBresolveip\ [\fR\fB\fIoptions\fR\fR\fB]\ {\fR\fB\fIhost_name\fR\fR\fB|\fR\fB\fIip\-addr\fR\fR\fB}\ \&.\&.\&.\fR\ 'u
|
||||
\fBresolveip [\fR\fB\fIoptions\fR\fR\fB] {\fR\fB\fIhost_name\fR\fR\fB|\fR\fB\fIip\-addr\fR\fR\fB} \&.\&.\&.\fR
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
The
|
||||
\fBresolveip\fR
|
||||
utility resolves host names to IP addresses and vice versa\&.
|
||||
.PP
|
||||
Invoke
|
||||
\fBresolveip\fR
|
||||
like this:
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
shell> \fBresolveip [\fR\fB\fIoptions\fR\fR\fB] {\fR\fB\fIhost_name\fR\fR\fB|\fR\fB\fIip\-addr\fR\fR\fB} \&.\&.\&.\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.PP
|
||||
\fBresolveip\fR
|
||||
supports the following options\&.
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" resolveip: help option
|
||||
.\" help option: resolveip
|
||||
\fB\-\-help\fR,
|
||||
\fB\-\-info\fR,
|
||||
\fB\-?\fR,
|
||||
\fB\-I\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
|
||||
.\}
|
||||
.\" resolveip: silent option
|
||||
.\" silent option: resolveip
|
||||
\fB\-\-silent\fR,
|
||||
\fB\-s\fR
|
||||
.sp
|
||||
Silent mode\&. Produce less output\&.
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.ie n \{\
|
||||
\h'-04'\(bu\h'+03'\c
|
||||
.\}
|
||||
.el \{\
|
||||
.sp -1
|
||||
.IP \(bu 2.3
|
||||
.\}
|
||||
.\" resolveip: version option
|
||||
.\" version option: resolveip
|
||||
\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/).
|
||||
Reference in New Issue
Block a user