10bet网址
MySQL 8.0 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual

23.5.14.3 The ndbinfo backup_id Table

This table provides a way to find the ID of the backup started most recently for this cluster.

Thebackup_idtable contains a single columnid, which corresponds to a backup ID taken using thendb_mgmclientSTART BACKUPcommand. This table contains a single row.

Example: Assume the following sequence ofSTART BACKUPcommands issued in the NDB management client, with no other backups taken since the cluster was first started:

ndb_mgm> START BACKUP Waiting for completed, this may take several minutes Node 5: Backup 1 started from node 50 Node 5: Backup 1 started from node 50 completed StartGCP: 27894 StopGCP: 27897 #Records: 2057 #LogRecords: 0 Data: 51580 bytes Log: 0 bytes ndb_mgm> START BACKUP 5 Waiting for completed, this may take several minutes Node 5: Backup 5 started from node 50 Node 5: Backup 5 started from node 50 completed StartGCP: 27905 StopGCP: 27908 #Records: 2057 #LogRecords: 0 Data: 51580 bytes Log: 0 bytes ndb_mgm> START BACKUP Waiting for completed, this may take several minutes Node 5: Backup 6 started from node 50 Node 5: Backup 6 started from node 50 completed StartGCP: 27912 StopGCP: 27915 #Records: 2057 #LogRecords: 0 Data: 51580 bytes Log: 0 bytes ndb_mgm> START BACKUP 3 Connected to Management Server at: localhost:1186 Waiting for completed, this may take several minutes Node 5: Backup 3 started from node 50 Node 5: Backup 3 started from node 50 completed StartGCP: 28149 StopGCP: 28152 #Records: 2057 #LogRecords: 0 Data: 51580 bytes Log: 0 bytes ndb_mgm>

After this, thebackup_idtable contains the single row shown here, using themysqlclient:

mysql> USE ndbinfo; Database changed mysql> SELECT * FROM backup_id; +------+ | id | +------+ | 3 | +------+ 1 row in set (0.00 sec)

If no backups can be found, the table contains a single row with0as theidvalue.

Thebackup_idtable was added in NDB 8.0.24.