nav-img
Advanced

Overview

Before connecting to a DB instance, you must create one first. You can connect to an RDS for MySQL instance through a command-line interface (CLI), graphical user interface (GUI), or using Java database connectivity (JDBC).

Connection Methods

Table 1 Connection methods

Connection Method

Description

In Linux, you need to install the mysql client on the ECS and connect to the instance through the MySQL CLI over a private or public network.

  • A private IP address is provided by default.

    When your applications are deployed on an ECS that is in the same region and VPC as the RDS for MySQL instance, you are advised to use a floating IP address to connect to the instance through the ECS.

  • If you cannot access your RDS instance through a floating IP address, bind an EIP to the instance and connect to the instance through the EIP.

In Windows, you can use any common database client to connect to an RDS for MySQL instance.

If you are connecting to an instance through JDBC, the SSL certificate is optional. For security reasons, you are advised to download the SSL certificate to encrypt the connection.