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

Overview

Figure 1 illustrates how to connect 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 a Security Group Rule.
    • 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