MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
This table provides a way to find the ID of the backup started most recently for this cluster.
Thebackup_id
table contains a single columnid
, which corresponds to a backup ID taken using thendb_mgmclientSTART BACKUP
command. This table contains a single row.
Example: Assume the following sequence ofSTART BACKUP
commands 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_id
table 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 with0
as theid
value.
Thebackup_id
table was added in NDB 8.0.24.