Updated on 2024-01-02 GMT+08:00

Creating a DRS Migration Task

Create a DRS migration task to migrate data from RDS for MySQL databases in different regions to DDM.

Pre-Migration Check

Before creating a migration task, check the migration conditions.

This section describes how to migrate data from a MySQL database to DDM. For details, see Before You Start.

Creating a Migration Task

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select CN-Hong Kong.
  3. Under the service list, choose Databases > Data Replication Service.
  4. In the upper right corner, click Create Migration Task.
  5. Configure the required parameters.

    1. Specify a migration task name.

    2. Configure replication instance details as needed.

      Select the DDM instance created in Creating a DDM Instance as the destination database.

  6. Click Create Now.

    It takes about 5 to 10 minutes to create a replication instance.

  7. Configure source and destination database information.

    1. Configure the source database information and click Test Connection. If a successful test message is returned, the database is connected.

    2. Configure destination database information and click Test Connection. If a successful test message is returned, the database is connected.

  8. Click Next.
  9. On the Set Task page, configure migration objects.

    • Migrate Object: Select Tables.

  10. Click Next. On the Check Task page, check the migration task.

    • If any check fails, review the cause and rectify the fault. After the fault is rectified, click Check Again.
    • If all check items are successful, click Next.

  11. Click Submit.

    Return to the Online Migration Management page and check the migration task status.

    It takes several minutes to complete.

    If the status changes to Full migration, the migration task has been started.

    • For migration from MySQL to DDM, full migration and full+incremental migration modes are supported.
    • If you create a full migration task, the task automatically stops after the full data is migrated to the destination.
    • If you create a full+incremental migration task, a full migration is executed first. After the full migration is complete, an incremental migration starts.
    • During the incremental migration, data is continuously migrated so the task will not automatically stop.