Updated on 2024-09-06 GMT+08:00

Creating a Migration Task

This topic describes how to create a DRS migration task to migrate the loadtest database from the self-managed MySQL server to an RDS for MySQL instance.

Pre-migration Check

Before creating a migration task, check the migration environment to ensure smooth migration.

This example describes how to migrate data from a self-managed MySQL database to an RDS for MySQL instance. For more information, see From MySQL to MySQL.

Procedure

Migrate the loadtest database from a self-managed MySQL server to an RDS for MySQL instance.

  1. Go to the Create Migration Task page.
  2. Configure parameters as needed.

    1. Specify a migration task name. Select CN-Hong Kong for Region.
      Figure 1 Migration task
    2. Configure replication instance information.

      Select the instance created in Creating an RDS for MySQL Instance as the destination instance.

      Figure 2 Replication instance details

    3. Select default for Enterprise Project.

  3. Click Create Now.

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

  4. Configure task information and click Next.

    1. Configure source database information.
    2. Click Test Connection.

      If a successful test message is returned, login to the source is successful.

      Figure 3 Source database settings

    3. Specify a username and password for the destination database.
    4. Click Test Connection.

      If a successful test message is returned, login to the destination is successful.

      Figure 4 Destination database settings

  5. On the Set Task page, select the accounts and objects to be migrated, and click Next.

    Select All for Migration Object.

  6. On the Check Task page, check the migration task.

    If the check is complete and the check success rate is 100%, click Next.

  7. On the Compare Parameters page, click Next in the lower right corner to skip the comparison.
  8. On the Confirm Task page, specify Start Time, Send Notifications, SMN Topic, Delay Threshold (s), and Stop Abnormal Tasks After, confirm that the configured information is correct, and click Submit to submit the task.
  9. After the task is submitted, view and manage it on the Online Migration Management page.