Help Center>
GaussDB(for MySQL)>
FAQs>
Database Connections>
What Should I Do If an ECS Cannot Connect to a GaussDB(for MySQL) Instance?
Updated on 2023-10-19 GMT+08:00
What Should I Do If an ECS Cannot Connect to a GaussDB(for MySQL) Instance?
Perform the following steps to identify the problem:
- Check whether the ECS and GaussDB(for MySQL) 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 where the instance is located.
- Check whether a security group has been created for the ECS.
- If a security group has been created, check whether its rules are appropriate.
- If no security group has been created, go to the VPC console from the ECS details page and create a security group.
- Check whether the ECS can connect to the instance over the instance port.
The default port of a primary/standby instance is 3306.
telnet <IP address> {Port number}
- If the ECS can connect to the instance, no further action is required.
- If the ECS still cannot connect to the instance port, contact technical support.
Parent topic: Database Connections
Database Connections FAQs
- Can an External Server Access the GaussDB(for MySQL) Database?
- What Do I Do If the Number of GaussDB(for MySQL) Database Connections Reaches the Upper Limit?
- What Is the Maximum Number of Connections to a GaussDB(for MySQL) Instance?
- What Should I Do If an ECS Cannot Connect to a GaussDB(for MySQL) Instance?
- How Can I Connect to a MySQL Database Through JDBC?
- How Can I Create and Connect to an ECS?
- What Should I Do If a Database Client Problem Causes a Connection Failure?
- Why Cannot I Ping My EIP After It Is Bound to a DB Instance?
- What Can I Do If the Connection Test Failed?
- Can I Access a GaussDB(for MySQL) Instance over an Intranet Connection Across Regions?
- Are There Any Potential Risks If There Are Too Many Connections to a GaussDB(for MySQL) Instance?
- What Should I Do If an ECS and a GaussDB(for MySQL) instance Deployed in Different VPCs Cannot Communicate with Each Other?
- How Do I View All IP Addresses Connected to a Database?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
more