Help Center/
Relational Database Service/
User Guide (ME-Abu Dhabi Region) /
FAQs/
Database Connection/
What Should I Do If an ECS Cannot Connect to an RDS DB Instance?
Updated on 2023-07-06 GMT+08:00
What Should I Do If an ECS Cannot Connect to an RDS DB Instance?
Perform the following steps to identify the problem:
- Check whether the ECS and RDS DB instance are located in the same VPC.
- If they are in the same VPC, go to 2.
- If they are in different VPCs, create an ECS in the VPC in which the RDS DB instance is located.
- Check whether a security group has been added to the ECS.
- If no security group has been added, go to the VPC console from the ECS details page and click Security Groups to add a security group.
- On the ECS, check whether the RDS DB instance port can be connected.
The default port of RDS for MySQL is 3306.
The default port of RDS for PostgreSQL is 5432.
The default RDS for Microsoft SQL Server port number is 1433.
telnet <IP address> {port number}
- If the ECS can connect to the RDS DB instance port, the network between the ECS and the RDS DB instance is normal.
- If the ECS cannot connect to the port, contact technical support.
Parent topic: Database Connection
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot