The SHOW STATUS FROM READWRITE_SPLITTING RULE
syntax is used to query readwrite splitting storage unit status for specified readwrite splitting rule in specified database.
ShowStatusFromReadwriteSplittingRule ::=
'SHOW' 'STATUS' 'FROM' 'READWRITE_SPLITTING' ('RULES' | 'RULE' groupName) ('FROM' databaseName)?
groupName ::=
identifier
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.Columns | Description |
---|---|
resource | storage unit name |
status | storage unit status |
delay_time(ms) | delay time |
SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0 FROM test1;
mysql> SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0 FROM test1;
+----------+---------+----------------+
| resource | status | delay_time(ms) |
+----------+---------+----------------+
| su_0 | enabled | 0 |
| su_1 | enabled | 0 |
| ds_2 | enabled | 0 |
| ds_1 | enabled | 0 |
+----------+---------+----------------+
4 rows in set (0.01 sec)
SHOW STATUS FROM READWRITE_SPLITTING RULES FROM test1;
mysql> SHOW STATUS FROM READWRITE_SPLITTING RULES FROM test1;
+----------+---------+----------------+
| resource | status | delay_time(ms) |
+----------+---------+----------------+
| su_0 | enabled | 0 |
| su_1 | enabled | 0 |
| ds_2 | enabled | 0 |
| ds_1 | enabled | 0 |
+----------+---------+----------------+
4 rows in set (0.00 sec)
SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0;
mysql> SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0;
+----------+---------+----------------+
| resource | status | delay_time(ms) |
+----------+---------+----------------+
| su_0 | enabled | 0 |
| su_1 | enabled | 0 |
| ds_2 | enabled | 0 |
| ds_1 | enabled | 0 |
+----------+---------+----------------+
4 rows in set (0.01 sec)
mysql> SHOW STATUS FROM READWRITE_SPLITTING RULES;
mysql> SHOW STATUS FROM READWRITE_SPLITTING RULES;
+----------+---------+----------------+
| resource | status | delay_time(ms) |
+----------+---------+----------------+
| su_0 | enabled | 0 |
| su_1 | enabled | 0 |
| ds_2 | enabled | 0 |
| ds_1 | enabled | 0 |
+----------+---------+----------------+
4 rows in set (0.01 sec)
SHOW
, STATUS
, FROM
, READWRITE_SPLITTING
, RULE
, RULES