Overview
Process
Figure 1 illustrates the process of connecting to an RDS for MySQL DB instance through a private network.
Server |
Connection Tool |
IP Address |
Default Port |
Security Group Rules |
---|---|---|---|---|
MySQL CLI |
Floating IP address |
3306 |
|
|
Database client such as MySQL-Front |
Floating IP address |
3306 |
To connect to a DB instance from a Linux ECS, perform the following steps:
- Step 1: Buy an ECS: Purchase and log in to a Linux ECS. Ensure that the ECS and RDS for MySQL DB instance are in the same region and VPC.
- Step 2: Test Connectivity and Install a MySQL Client: Test the network connectivity between the ECS and the floating IP address and port of the RDS for MySQL DB instance, and install a MySQL client.
- Step 3: Connect to the DB Instance Using Commands (Non-SSL Connection): Use the MySQL CLI to connect to the DB instance using the floating IP address and port.
To connect to a DB instance from a Windows ECS, perform the following steps:
- Step 1: Buy an ECS: Purchase and log in to a Windows ECS. Ensure that the ECS and RDS for MySQL DB instance are in the same region and VPC.
- Step 2: Test Connectivity and Install MySQL-Front: Test the network connectivity between the ECS and the floating IP address and port of the RDS for MySQL DB instance, and install MySQL-Front (MySQL-Front is used as an example).
- Step 3: Connect to the DB Instance Using MySQL-Front: Use MySQL-Front to connect to the DB instance using the floating IP address and port.
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