Migrate self-managed MySQL to ApsaraDB RDS with DTS
You will migrate a live MySQL 8.0 database from an ECS server to ApsaraDB RDS for MySQL. DTS first creates the schema, performs a full copy, and then continuously applies binary-log changes while the source keeps accepting orders.
Scenario
The legacy shop database runs as self-managed MySQL on wsNN-source. The company wants a managed database without a long write outage. You will prepare the source, prepare wsNN-rds, configure the DTS migration task prepared for you, generate new source transactions, confirm that DTS applies them to RDS, and practice a controlled cutover.
Architecture
What you will learn
- Source requirements for incremental MySQL migration: primary keys, ROW binary logs, FULL row images and enough log retention.
- The minimum MySQL privileges DTS needs on the source and why it writes a heartbeat/test database.
- How to create an RDS privileged account and allow private access for validation.
- How to configure source and destination connections, select objects and interpret the precheck.
- How full and incremental phases differ, how to measure latency, and how to perform a cutover.
Modules
- 0Getting started10 min
Sign in, select Philippines (Manila) and identify your resources. - 1Prepare source MySQL15 min
Validate prerequisites and create the DTS database account. - 2Prepare target RDS10 min
Create a privileged account and configure its IP whitelist. - 3Configure the migration task25 min
Connect endpoints, select shopdb, precheck and start. - 4Monitor and validate15 min
Generate live writes and compare source with destination. - 5Cut over10 min
Stop writes, confirm DTS is Undelayed, compare final values and switch the application endpoint.
Cost and lifecycle
DTS schema migration and full data migration are free of charge. Incremental data migration is billed while it runs. The RDS and ECS instances and their storage are billed separately. No exact price is assumed here; use the pricing calculator for your account and region.
After the full copy completes, the task stays Running and keeps incurring charges until it is ended. Tell your facilitator as soon as you finish Module 5.
You can see every participant's DTS tasks, but you can configure and run only your own. Work only with the task that has your DTS instance ID and the RDS instance wsNN-rds.
First complete Run the DTS workshop in your own account to create and verify the source ECS, RDS instance and DTS migration instance.