SHOW DB_DISCOVERY HEARTBEATS
语法用于查询指定逻辑库中的数据库发现心跳。
ShowDatabaseDiscoveryHeartbeats::=
'SHOW' 'DB_DISCOVERY' 'HEARTBEATS' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
name | 数据库发现心跳名称 |
props | 数据库发现心跳参数 |
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)
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)
SHOW
、DB_DISCOVERY
、HEARTBEATS
、FROM