SHOW DB_DISCOVERY HEARTBEATS
Description
The SHOW DB_DISCOVERY HEARTBEATS
syntax is used to query database discovery heartbeats for specified database.
Syntax
ShowDatabaseDiscoveryType::=
'SHOW' 'DB_DISCOVERY' 'HEARTBEATS' ('FROM' databaseName)?
databaseName ::=
identifier
Supplement
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted.
Return value description
Column | Description |
---|---|
name | Database discovery heartbeat name |
props | Database discovery heartbeat properties |
Example
- Query database discovery heartbeats for specified database.
SHOW DB_DISCOVERY HEARTBEATS FROM test1;
mysql> SHOW DB_DISCOVERY HEARTBEATS FROM test1;
+-------------------+---------------------------------+
| name | props |
+-------------------+---------------------------------+
| group_0_heartbeat | {keep-alive-cron=0/5 * * * * ?} |
+-------------------+---------------------------------+
1 row in set (0.00 sec)
- Query database discovery heartbeats for current database.
SHOW DB_DISCOVERY HEARTBEATS;
mysql> SHOW DB_DISCOVERY HEARTBEATS;
+-------------------+---------------------------------+
| name | props |
+-------------------+---------------------------------+
| group_0_heartbeat | {keep-alive-cron=0/5 * * * * ?} |
+-------------------+---------------------------------+
1 row in set (0.00 sec)
Reserved word
SHOW
, DB_DISCOVERY
, HEARTBEATS
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .