-
Used innobackupex with this options to get a backup from the master:
innobackupex /var/backup/xtra --slave-info --safe-slave-backup -
The master and the (future) slave running mysql 5.7 with GTID:
mysql -sre “show global variables”| grep gtid_mode
gtid_mode ON
-
After moving the backup to the Slave and restoring it with:
innobackupex --apply-log /var/backups/xtra/2017-05-26_22-49-20/
innobackupex --copy-back /var/backups/xtra/2017-05-26_22-49-20/ -
But Replicacion is getting errors:
Last_SQL_Error: Could not execute Write_rows event on table XXXXX; Duplicate entry ‘XXX’ for key ‘PRIMARY’, Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event’s master log mysql-bin.002255, end_log_pos 1384983
My doubt is if the options --slave-info or --safe-slave-backup in a Master with GTID can cause this problems.
Thanks.