After a sandbox instance is created, you can access it with ease by using Elastic Compute Service (ECS).

Prerequisites

Procedure

In the following example, an ECS instance that runs 64-bit CentOS 7.6 is used.

  1. Obtain the sandbox instance address.
    1. Log on to the DBS console.
    2. In the left-side navigation pane, click Backup Schedules. In the upper-left corner of the Backup Schedules page, select a region.
    3. Find the backup schedule that is associated with the sandbox instance that you want to access. Then, click Manage in the Operation column.
    4. In the left-side navigation pane, click Sandbox tasks. On the page that appears, find the sandbox instance that you want to access and obtain the sandbox instance address in the Sandbox instance/remote disk address column.
      Sandbox instance address
  2. On the ECS instance, run the following command to connect to the database:
    mysql -h <sandbox instance address> -u <username> -p<password>
    Note
    • The sandbox instance address does not contain a port number. Spaces are not allowed between the -p option and the password.
    • The username and password of the sandbox instance are the same as those of the source database.
    When an output similar to the following one is returned, the ECS instance is connected to the sandbox instance. Use ECS to access sandbox instances