Overview
Before connecting to a DB instance, you must create one first. For details about how to create a DB instance, see Buying an RDS for MySQL DB Instance. You can connect to an RDS for MySQL instance through a command-line interface (CLI), graphical user interface (GUI), Data Admin Service (DAS), or using Java database connectivity (JDBC).
Connecting to a DB Instance over a Private or Public Network Using CLI
Table 1 lists how to use CLI to connect to an RDS for MySQL instance over a private or public network.
Connection Method |
IP Address |
Security Group Rules |
Description |
---|---|---|---|
Private IP address |
|
|
|
You need to purchase an EIP. For pricing details, see EIP Billing. |
To access a DB instance from resources outside the security group that the DB instance is associated with, you need to configure an inbound rule for the security group. For details, see Configuring a Security Group Rule. |
|
Connection Methods
Connection Method |
Description |
---|---|
Connecting to an RDS for MySQL Instance Through DAS (Recommended) |
DAS enables you to manage databases on a web-based console. It supports SQL execution, advanced database management, and intelligent O&M, simplifying database management and improving both efficiency and data security. The permissions required for connecting to DB instances through DAS are enabled by default. |
Connecting to an RDS for MySQL Instance Through the MySQL CLI Client |
In Linux, you need to install a MySQL client on the ECS and connect to the instance through the MySQL CLI over a private or public network.
|
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. SSL is disabled by default for RDS for MySQL instances. You can enable SSL by referring to Configuring an SSL Connection. SSL encrypts connections to databases but it increases the connection response time and CPU usage. Therefore, you are advised not to enable SSL. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot