Mysqld_Multi; Manage Multiple Mysql Servers - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

The path to the MySQL installation directory.
--datadir=path
The path to the MySQL data directory.
--pid-file=file_name
The path name of the file in which the server should write its process ID.
--service-startup-timeout=file_name
How long in seconds to wait for confirmation of server startup. If the server does not start within this
time,
mysql.server
all for startup. Negative values mean to wait forever (no timeout). This option was added in MySQL
5.0.40. Before that, a value of 900 is always used.
--use-mysqld_safe
Use
mysqld_safe
--use-manager
Use Instance Manager to start the server. This option was added in MySQL 5.0.4.
--user=user_name
The login user name to use for running mysqld. This option was added in MySQL 5.0.4.
4.3.4.

mysqld_multi

mysqld_multi

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
Section 4.6.10,
mysqld_multi
config-file
discussion as the option group number, or GNR. Group numbers distinguish option groups from one
another and are used as arguments to
stop, or obtain a status report for. Options listed in these groups are the same that you would use in the
group used for starting mysqld. (See, for example,
[mysqld]
MySQL
Automatically".) 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
Multiple MySQL Instances on One
To invoke mysqld_multi, use the following syntax:
shell>
mysqld_multi [options] {start|stop|report} [GNR[,GNR] ...]
start, stop, and
operation for a single server or multiple servers, depending on the
If there is no list,
Each
value represents an option group number or range of group numbers. The value should be
GNR
the number at the end of the group name in the option file. For example, the
[mysqld17]
value
GNR
10-13
ranges can be specified on the command line, separated by commas. There must be no whitespace
characters (spaces or tabs) in the
mysqld_multi
[250]
[250]
exits with an error. The default value is 900. A value of 0 means not to wait at
[250]
to start the server. This is the default. This option was added in MySQL 5.0.4.
[250]
[250]

— Manage Multiple MySQL Servers

is designed to manage several
"mysqlmanager
— The MySQL Instance
searches for groups named
[251]
option).
can be any positive integer. This number is referred to in the following
N
Machine".
indicate which operation to perform. You can perform the designated
report
performs the operation for all servers in the option file.
mysqld_multi
is 17. To specify a range of numbers, separate the first and last numbers by a dash. The
represents groups
GNR

— Manage Multiple MySQL Servers

[250]
processes that listen for connections
mysqld
Manager").
in
[mysqldN]
to specify which servers you want to start,
mysqld_multi
through [mysqld13]. Multiple groups or group
[mysqld10]
list; anything after a whitespace character is ignored.
250
(or in the file named by the
my.cnf
Section 2.18.1.2, "Starting and Stopping
Section 5.3, "Running
list that follows the option name.
GNR
for a group named
GNR
--

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents