Help Center/ TaurusDB/ FAQs/ Database Connections/ What Should I Do If an ECS Can't Connect to a GaussDB(for MySQL) Instance?
Updated on 2024-09-05 GMT+08:00

What Should I Do If an ECS Can't Connect to a GaussDB(for MySQL) Instance?

Perform the following steps to identify the problem:

  1. Check whether the ECS and GaussDB(for MySQL) instance are 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 GaussDB(for MySQL) instance is located.

  2. Check whether a security group has been created for the ECS.

    • If a security group has been created, check whether its rules are appropriate.

      For details, see "Connecting to a DB Instance" > "Configuring Security Group Rules" in GaussDB(for MySQL) User Guide. Then, go to 3.

    • If no security group has been created, go to the VPC console from the ECS details page and create a security group.

  3. On the ECS, check whether the GaussDB(for MySQL) instance port can be connected to.

    The default port of a GaussDB(for MySQL) primary/standby instance is 3306.

    telnet <connection_address> {port}
    • 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.