mysqlmanager
— The MySQL Instance Manager
362
After you set up a password file for the MySQL Instance Manager and Instance Manager is running,
you can connect to it. The MySQL client/server protocol is used to communicate with the Instance
Manager. For example, you can connect to it using the standard
mysql
client program:
shell>
mysql --port=2273 --host=im.example.org --user=mysql --password
Instance Manager supports the version of the MySQL client/server protocol used by the client tools and
libraries distributed with MySQL 4.1 or later, so other programs that use the MySQL C API also can
connect to it.
4.6.10.7. MySQL Instance Manager Commands
Important
MySQL Instance Manager is been deprecated in MySQL 5.1 and is removed in
MySQL 5.5.
After you connect to MySQL Instance Manager, you can issue commands. The following general
principles apply to Instance Manager command execution:
• Commands that take an instance name fail if the name is not a valid instance name.
• Commands that take an instance name fail if the instance does not exist.
• Instance Manager maintains information about instance configuration in an internal (in-memory)
cache. Initially, this information comes from the configuration file if it exists, but some commands
change the configuration of an instance. Commands that modify the configuration file fail if the file
does not exist or is not accessible to Instance Manager.
• On Windows, the standard file is
my.ini
in the directory where Instance Manager is installed. On
Unix, the standard configuration file is
/etc/my.cnf
. To specify a different configuration file, start
Instance Manager with the
--defaults-file
[356]
option.
• If a
[mysqld]
instance section exists in the configuration file, it must not contain any Instance
Manager-specific options (see
Section 4.6.10.2, “MySQL Instance Manager Configuration Files”
).
Therefore, you must not add any of these options if you change the configuration for an instance
named
mysqld
.
The following list describes the commands that Instance Manager accepts, with examples.
•
START INSTANCE instance_name
This command attempts to start an offline instance. The command is asynchronous; it does not wait
for the instance to start.
mysql>
START INSTANCE mysqld4;
Query OK, 0 rows affected (0,00 sec)
•
STOP INSTANCE instance_name
This command attempts to stop an instance. The command is synchronous; it waits for the instance
to stop.
mysql>
STOP INSTANCE mysqld4;
Query OK, 0 rows affected (0,00 sec)
•
SHOW INSTANCES
Shows the names and status of all loaded instances.
mysql>
SHOW INSTANCES;
+---------------+---------+
| instance_name | status |
+---------------+---------+
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...