SHOW STATUS FROM READWRITE_SPLITTING RULE
Syntax
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
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.
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_1 | enabled | 0 |
| ds_2 | enabled | 0 |
| ds_1 | enabled | 0 |
4 rows in set (0.01 sec)
- Query all readwrite splitting storage unit from specified database
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)
- Query readwrite splitting storage unit status for specified readwrite splitting rule in current database
SHOW STATUS FROM READWRITE_SPLITTING RULE ms_group_0;
- Query all readwrite splitting storage unit from current database
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 |
+----------+---------+----------------+
Reserved word
SHOW
, STATUS
, FROM
, READWRITE_SPLITTING
, , RULES