Perform the following steps to identify the problem:
- Check whether the ECS and GaussDB(for MySQL) 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 where the DB instance is located.
- Check whether a security group has been created for the ECS.
- Check whether the ECS can connect to the DB instance over the instance port.
The default port of the DB instance is 3306.
telnet <IP address> {Port number}
- If the ECS can connect to the DB instance port, the network between the ECS and the DB instance is normal.
- If the ECS cannot connect to the DB instance port, contact technical support.