MySQL 8.0 Database Administrator — Question 114

You have an InnoDB Cluster configured with three servers.
Examine this command, which executes successfully:
mysqldump -uroot -p -d mydatabase > mydatabase_backup.sql
Due to data loss, the cluster is initialized and a restore is attempted resulting in this error:
ERROR 13176 (HY000) at line 23: Cannot update GTID_PURGED with the Group Replication plugin running
Which two actions, either one of which, can fix this error and allow a successful restore of the cluster? (Choose two.)

Answer options

Correct answer: B, C

Explanation

The correct answers are B and C because removing the @@GLOBAL.gtid_purged statement from the dump file allows the restore to proceed without conflicting with the group replication plugin, and using the --set-gtid-purged=OFF option prevents GTID statements from being included in the dump. The other options either do not directly address the GTID_PURGED issue or involve unnecessary steps that could complicate the restore process.