Updated on 2024-04-11 GMT+08:00

Overview

Process

Figure 1 illustrates the process of connecting to an RDS for MySQL DB instance through a private network.

Figure 1 Connecting to a DB instance through a private network
Table 1 Connection methods

Server

Connection Tool

IP Address

Default Port

Security Group Rules

Linux ECS

MySQL CLI

Floating IP address

3306

  • If the ECS and RDS DB instance are in the same security group, they can communicate with each other by default. No security group rules need to be configured.
  • If they are in different security groups, configure security group rules for them, separately.
    • RDS DB instance: Configure an inbound rule for the security group with which the RDS DB instance is associated. For details, see Configuring Security Group Rules.
    • ECS: The default security group rule allows all outgoing data packets. In this case, you do not need to configure a security group rule for the ECS. If not all outbound traffic is allowed in the security group, you need to configure an outbound rule for the ECS.

Windows ECS

Database client such as MySQL-Front

Floating IP address

3306

To connect to a DB instance from a Linux ECS, perform the following steps:

To connect to a DB instance from a Windows ECS, perform the following steps: