2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \" Title: \fBmysql_convert_table_format\fR
2009-09-16 14:03:18 +02:00
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
. \" Date: 08/12/2009
2009-05-25 11:59:47 +02:00
. \" Manual: MySQL Database System
. \" Source: MySQL 5.1
2009-09-16 14:03:18 +02:00
. \" Language: English
2009-05-25 11:59:47 +02:00
. \"
2009-09-16 14:03:18 +02:00
.TH "\FBMYSQL_CONVERT_TAB" "1" "08/12/2009" "MySQL 5\&.1" "MySQL Database System"
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_convert_table_format
2009-05-25 11:59:47 +02:00
.SH "NAME"
mysql_convert_table_format \- convert tables to use a given storage engine
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_convert_table_format\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR \fB \fI db_name\fR\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB mysql_convert_table_format [\fR \fB \fI options\fR \fR \fB ] \fR \fB \fI db_name\fR \fR
.SH "DESCRIPTION"
.PP
\fB mysql_convert_table_format\fR
converts the tables in a database to use a particular storage engine (MyISAM
2009-09-16 14:03:18 +02:00
by default)\& .
2009-05-25 11:59:47 +02:00
\fB mysql_convert_table_format\fR
is written in Perl and requires that the
DBI
and
DBD::mysql
Perl modules be installed (see
2009-09-16 14:03:18 +02:00
Section\ \& 2.15, \(lq Perl Installation Notes\(rq )\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
\fB mysql_convert_table_format\fR
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_convert_table_format [\fR \fB \fI options\fR \fR \fB ]\fR \fB \fI db_name\fR \fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
The
\fI db_name\fR
2009-09-16 14:03:18 +02:00
argument indicates the database containing the tables to be converted\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_convert_table_format\fR
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_convert_table_format: force option
. \" force option: mysql_convert_table_format
2009-05-25 11:59:47 +02:00
\fB \- \- force\fR
.sp
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- host=\fR \fB \fI host_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- password=\fR \fB \fI password\fR \fR
.sp
2009-09-16 14:03:18 +02:00
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\& . You can use an option file to avoid giving the password on the command line\& .
.sp
Specifying a password on the command line should be considered insecure\& . See
Section\ \& 5.5.6.2, \(lq End-User Guidelines for Password Security\(rq \& .
.RE
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.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
2009-05-25 11:59:47 +02:00
\fB \- \- port=\fR \fB \fI port_num\fR \fR
.sp
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- socket=\fR \fB \fI path\fR \fR
.sp
For connections to
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- type=\fR \fB \fI engine_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Specify the storage engine that the tables should be converted to use\& . The default is
2009-05-25 11:59:47 +02:00
MyISAM
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- user=\fR \fB \fI user_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- verbose\fR
.sp
2009-09-16 14:03:18 +02:00
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
2009-05-25 11:59:47 +02:00
\fB \- \- version\fR
.sp
2009-09-16 14:03:18 +02:00
Display version information and exit\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2009-09-16 14:03:18 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
.sp
2009-05-25 11:59:47 +02:00
.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
2009-09-16 14:03:18 +02:00
Sun Microsystems, Inc. (http://www.mysql.com/).