The SHOW DB_DISCOVERY HEARTBEATS
syntax is used to query database discovery heartbeats for specified database.
ShowDatabaseDiscoveryType::=
'SHOW' 'DB_DISCOVERY' 'HEARTBEATS' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.Column | Description |
---|---|
name | Database discovery heartbeat name |
props | Database discovery heartbeat properties |
SHOW DB_DISCOVERY HEARTBEATS FROM discovery_db;
mysql> SHOW DB_DISCOVERY HEARTBEATS FROM discovery_db;
+-------------------+---------------------------------+
| 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