This topic describes how to migrate data from a PolarDB-X 2.0 instance to an AnalyticDB for MySQL V3.0 cluster by using Data Transmission Service (DTS). After you migrate the data, you can use AnalyticDB for MySQL to build systems such as internal business intelligence (BI) systems, interactive query systems, and real-time report systems.
Prerequisites
- The source PolarDB-X 2.0 instance is created and compatible with MySQL 5.7.
- The destination AnalyticDB for MySQL V3.0 cluster is created. For more information, see Create a cluster.
- The available storage space of the destination AnalyticDB for MySQL V3.0 cluster is larger than the total size of the data in the source PolarDB-X 2.0 instance.
Limits
Category | Description |
---|---|
Limits on the source database |
|
Other limits |
|
Usage notes | DTS updates the `dts_health_check`.`ha_health_check` table in the source database as scheduled to move forward the binary log file position. |
Billing
Migration type | Instance configuration fee | Internet traffic fee |
---|---|---|
Schema migration and full data migration | Free of charge. | Charged only when data is migrated from Alibaba Cloud over the Internet. For more information, see Billing overview. |
Incremental data migration | Charged. For more information, see Billing overview. |
Migration types
- Schema migration
DTS migrates the schemas of required objects from the source database to the destination database.
- Full data migration
DTS migrates historical data of required objects from the source database to the destination database.
- Incremental data migration
After full data migration is complete, DTS migrates incremental data from the source database to the destination database. Incremental data migration allows you to ensure service continuity when you migrate data between self-managed databases.
SQL operations that can be migrated
Operation type | SQL statement |
---|---|
DML | INSERT, UPDATE, and DELETE |
Permissions required for database accounts
Database | Schema migration | Full data migration | Incremental data migration |
---|---|---|---|
PolarDB-X 2.0 | SELECT permission | SELECT permission | SELECT permission on the objects to be migrated, REPLICATION SLAVE permission, and REPLICATION CLIENT permission. DTS automatically grants these permissions to the database account. |
AnalyticDB for MySQL 3.0 | Read and write permissions |
For more information about how to create and grant permissions to a database account, see the following topics:
AnalyticDB for MySQL V3.0 cluster: Create a database account