SHOW STATUS FROM READWRITE_SPLITTING RULE

    Syntax

    • When databaseName is not specified, the default is the currently used DATABASE. If DATABASE is not used, No database selected will be prompted.

    Return Value Description

    • Query readwrite splitting storage unit status for specified readwrite splitting rule in specified database.
    1. SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0 FROM sharding_db;
    1. mysql> SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0 FROM sharding_db;
    2. +----------+---------+----------------+
    3. | resource | status | delay_time(ms) |
    4. +----------+---------+----------------+
    5. | ds_1 | enabled | 0 |
    6. | ds_2 | enabled | 0 |
    7. | ds_3 | enabled | 0 |
    8. 4 rows in set (0.01 sec)
    • Query all readwrite splitting storage unit from specified database
    1. mysql> SHOW STATUS FROM READWRITE_SPLITTING RULES FROM sharding_db;
    2. +----------+---------+----------------+
    3. | resource | status | delay_time(ms) |
    4. +----------+---------+----------------+
    5. | ds_0 | enabled | 0 |
    6. | ds_1 | enabled | 0 |
    7. | ds_2 | enabled | 0 |
    8. | ds_3 | enabled | 0 |
    9. 4 rows in set (0.00 sec)
    • Query readwrite splitting storage unit status for specified readwrite splitting rule in current database
    1. SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0;
    • Query all readwrite splitting storage unit from current database
    1. mysql> SHOW STATUS FROM READWRITE_SPLITTING RULES;
    1. +----------+---------+----------------+
    2. | resource | status | delay_time(ms) |
    3. +----------+---------+----------------+
    4. | ds_0 | enabled | 0 |
    5. | ds_1 | enabled | 0 |
    6. | ds_2 | enabled | 0 |
    7. | ds_3 | enabled | 0 |
    8. +----------+---------+----------------+

    Reserved word