On this page

Show all

Help Center/ Data Replication Service/ FAQs/ General Operations/ Will Data of DRS Tasks Be Lost After a Primary/Standby Switchover Occurs on the Source MySQL Database?

Will Data of DRS Tasks Be Lost After a Primary/Standby Switchover Occurs on the Source MySQL Database?

Updated on 2023-07-03 GMT+08:00

If GTID is enabled for the source MySQL database, DRS records the binlog position information when a primary/standby switchover occurs. After the primary/standby switchover, DRS resumes data transfer from the last interrupted position to prevent data loss.

You can modify the database configuration file to enable GTID for the source MySQL database. The modification takes effect after the database is restarted.

The reference commands are as follows:

gtid_mode = on
log_slave_updates = true
enforce_gtid_consistency = on
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback