How Can I Switch My MySQL Connection From a Replica to a Production Instance?
Question
How can I switch an existing MySQL connection from a replica instance to a production instance?
Environment
- Connector: MySQL
- Incremental sync method: Binary log
Answer
To switch from a replica to a production instance:
- In Fivetran, go to your MySQL connection page.
- Select the Settings tab.
- Click Edit connection.
- Update the Host and Port fields to point to the production instance.
- Click Save & Test.
- Trigger a historical re-sync for the connection. For instructions, see How to Trigger Historical Re-Syncs.
A historical re-sync is required because each instance has its own binary logs. We can't map the last processed binary log event on the replica instance to an event on the production instance.