- Documentation
RDS for MySQL
User guide
Managing connections
Connecting to an instance
Connecting to an instance via client application
Connecting to an instance
Connecting to an instance via client application
Connecting to an instance via client application
You can establish a connection using any MySQL-compatible client program. This topic describes how to connect to a MySQL instance by using a client program.
Background information
RDS for MySQL supports multiple types of addresses. We recommend that you use private addresses for connection. Before you use a local application to access MySQL instances, you should first request a public address for MySQL instances.
Procedure
Complete the following operations based on the location where the client program is deployed.
- Make sure that ECS instances and MySQL instances are in the same VPC network.
- Get the private IPv4 address of ECS instances.
- Add the private IPv4 address of ECS instances to the allowlist of MySQL instances. For specific procedures, refer to Setting allowlist.
- Complete the required configuration in the client application and connect to the instance.
- Deploy the client locally
- Obtain the public IPv4 address of your local device.
- Add the public IPv4 address of the local device to the IP allowlists of the MySQL instance. For specific procedures, refer to Setting allowlist.
- Complete the required configuration in the client application and connect to the instance.
Last updated: 2026.01.07 22:01:48