This topic describes how to migrate data from a PolarDB for MySQL cluster to a PolarDB-X 2.0 instance by using Data Transmission Service (DTS).
Prerequisites
- The source PolarDB for MySQL cluster is created. For more information, see Purchase a pay-as-you-go cluster and Purchase a subscription cluster.
- A PolarDB-X 2.0 instance is created, and its storage type is MySQL 5.x.
- The available storage space of the PolarDB-X 2.0 instance is larger than the total size of the data in the PolarDB for MySQL cluster.
Limits
Category | Description |
---|---|
Limits on the source database |
|
Usage notes |
|
Billing
Migration type | Instance configuration fee | Internet traffic fee |
---|---|---|
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
- 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 incrementally migrated
INSERT, UPDATE, and DELETE
Permissions required for database accounts
Database | Required permission |
---|---|
PolarDB for MySQL cluster | Read permissions on the objects to be migrated |
PolarDB-X 2.0 instance | Read and write permissions on the objects to be migrated |
For more information about how to create and grant permissions to a database account, see the following topics:
- PolarDB for MySQL cluster: Create a database account
- PolarDB-X 2.0 instance: Manage database accounts