.TH "MYSQLSERVERCLONE" "1" "May 09, 2012" "1.0.3" "MySQL Utilities" .SH NAME mysqlserverclone \- Start a new instance of an existing MySQL server . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .\" Man page generated from reStructeredText. . .SH SYNOPSIS .sp .nf .ft C mysqlserverclone [options] .ft P .fi .SH DESCRIPTION .sp This utility permits an administrator to clone an existing MySQL server instance to start a new server instance on the same host. The utility creates a new datadir (\fI\%--new-data\fP), and starts the server with a socket file. You can optionally add a password for the login user account on the new instance. .SH OPTIONS .sp \fBmysqlserverclone\fP accepts the following command\-line options: .INDENT 0.0 .TP .B \-\-help Display a help message and exit. .UNINDENT .INDENT 0.0 .TP .B \-\-mysqld= Additional options for \fBmysqld\fP. To specify multiple options, separate them by spaces. Use appropriate quoting as necessary. For example, to specify \fB\-\-log\-bin=binlog\fP and \fB\-\-general\-log\-file="my log file"\fP, use: .sp .nf .ft C \-\-mysqld="\-\-log\-bin=binlog \-\-general\-log\-file=\(aqmy log file\(aq" .ft P .fi .UNINDENT .INDENT 0.0 .TP .B \-\-new\-data= The full path name of the location of the data directory for the new server instance. If the directory does not exist, the utility will create it. .UNINDENT .INDENT 0.0 .TP .B \-\-new\-id= The \fBserver_id\fP value for the new server instance. The default is 2. .UNINDENT .INDENT 0.0 .TP .B \-\-new\-port= The port number for the new server instance. The default is 3307. .UNINDENT .INDENT 0.0 .TP .B \-\-quiet, \-q Turn off all messages for quiet execution. .UNINDENT .INDENT 0.0 .TP .B \-\-root\-password= The password for the \fBroot\fP user of the new server instance. .UNINDENT .INDENT 0.0 .TP .B \-\-server= Connection information for the server to be cloned in <\fIuser\fP>[:<\fIpasswd\fP>]@<\fIhost\fP>[:<\fIport\fP>][:<\fIsocket\fP>] format. .UNINDENT .INDENT 0.0 .TP .B \-\-verbose, \-v Specify how much information to display. Use this option multiple times to increase the amount of information. For example, \fI\-v\fP = verbose, \fI\-vv\fP = more verbose, \fI\-vvv\fP = debug. .UNINDENT .INDENT 0.0 .TP .B \-\-version Display version information and exit. .UNINDENT .INDENT 0.0 .TP .B \-\-write\-command=, \-w Path name of file in which to write the command used to launch the new server instance. .UNINDENT .SH EXAMPLES .sp The following command demonstrates how to create a new instance of a running server, set the \fBroot\fP user password and enable binary logging: .sp .nf .ft C $ mkdir /source/test123 $ mysqlserverclone \-\-server=root:pass@localhost \e \-\-new\-data=/Users/cbell/source/test123 \-\-new\-port=3310 \e \-\-root\-password=pass \-\-mysqld=\-\-log\-bin=mysql\-bin # Cloning the MySQL server running on localhost. # Creating new data directory... # Configuring new instance... # Locating mysql tools... # Setting up empty database and mysql tables... # Starting new instance of the server... # Testing connection to new instance... # Success! # Setting the root password... # ...done. .ft P .fi .SH COPYRIGHT .sp Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. .sp This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. .sp This program 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. .sp You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110\-1301 USA .SH AUTHOR MySQL Utilities Team .SH COPYRIGHT 2010, Oracle and/or its affiliates. All rights reserved. .\" Generated by docutils manpage writer. .\" .