Commands that the MySQL instance manager can recognize

Source: Internet
Author: User
Tags connect mysql client

Once you have set up a password file for the MySQL instance manager and im running, you can connect to it. You can use the MySQL client tool to connect through the standard MySQL API. The following is a list and example of commands that the MySQL instance manager can now receive.

·START INSTANCE <instance_name>

This command will attempt to start an instance:

mysql> START INSTANCE mysqld4;
Query OK, 0 rows affected (0,00 sec)
·STOP INSTANCE <instance_name>

An attempt will be made to stop an instance:

mysql> STOP INSTANCE mysqld4;
Query OK, 0 rows affected (0,00 sec)
·SHOW INSTANCES

Show all loaded instance names:

mysql> show instances;
+---------------+---------+
| instance_name | status |
+---------------+---------+
| mysqld3    | offline |
| mysqld4    | online |
| mysqld2    | offline |
+---------------+---------+
3 rows in set (0,04 sec)
·SHOW INSTANCE STATUS <instance_name>

Displays the status and version information for the selected instance:

mysql> SHOW INSTANCE STATUS mysqld3;
+---------------+--------+---------+
| instance_name | status | version |
+---------------+--------+---------+
| mysqld3    | online | unknown |
+---------------+--------+---------+
1 row in set (0.00 sec)
·SHOW INSTANCE OPTIONS <instance_name>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.