After creating an instance, setting the whitelist, and creating a database account, you can connect to the RDS for MySQL instance through any MySQL client or your application by configuring the connection address, port number, and account information. The MySQL client and your application can be deployed on ECS or a local computer.

If you are connecting from ECS to RDS through the intranet address, make sure that:
  • The ECS and RDS instances are both in the classic network or in the same VPC.
  • You have added the ECS intranet address to the RDS whitelist.

Use a client to connect to RDS for MySQL

The following uses MySQL-Front as an example.
  1. Start the MySQL-Front client.
  2. In the Open Connection window, click New.

  3. Enter the RDS connection information.

    Parameter Description
    Description Name Enter the connection task name. It is the same as the Host field by default.
    Host Enter the intranet or Internet address of the RDS instance.
    • If your client is deployed on an ECS instance that is in the same region and has the same network type as your RDS instance, use the intranet address.
    • In other cases, use the Internet address.
    You can view the address and port information as follows:
    1. Log on to the RDS console.
    2. Select the region where the target instance is located.
    3. Click the ID of the instance to visit the Basic Information page.
    4. In the Basic Information area, you can find the Internet and intranet addresses and port numbers.

    • Enter the intranet port number if you use an intranet address.
    • Enter the Internet port number if you use an Internet address.
    User Enter an account name of the RDS instance.
    Password Enter the password of the preceding account.
  4. Click OK.
  5. In the Open Connection window, select the connection that you created and click Open.

    If the connection information is correct, the RDS instance gets connected successfully.