Help Center/ GaussDB(for MySQL)/ FAQs/ Database Connections/ What Should I Do If the Network Connectivity Test Fails?
Updated on 2024-09-05 GMT+08:00

What Should I Do If the Network Connectivity Test Fails?

Before connecting to a GaussDB(for MySQL) instance, you need to test the network connectivity to ensure that the client can communicate with the GaussDB(for MySQL) instance.

This section analyzes common causes of network connection failures and provides solutions.

Fault Locating

  1. Check whether the ECS and GaussDB(for MySQL) instance are in the same VPC.
  2. Check the security group rules, ACL rules, internal network configurations, and ports of the ECS.
  3. Check the security group rules of the GaussDB(for MySQL) instance.
  4. Ping the affected IP address from another ECS in the same region.

Solution

  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 of a region, they cannot communicate with each other through a private network.
      To resolve this issue, do as follows:
      1. Create a VPC peering connection. For details, see VPC Peering Connection Overview.
      2. Change the VPC of the ECS to that of the GaussDB(for MySQL) instance. For details, see Changing a VPC.
  2. Check the ECS configurations.

    For details, see Why Does Communication Fail Between Two ECSs in the Same VPC or Packet Loss Occur When They Communicate?

  3. Check the security group rules of the GaussDB(for MySQL) instance.

    On the Inbound Rules page of the GaussDB(for MySQL) instance security group, add an inbound rule for the private IP address and port of the ECS.

  4. Ping the affected IP address from another ECS in the same region.

    On the ECS, ping the IP address that failed to be pinged. If the IP address can be pinged, the virtual network is normal.

  5. If the problem persists, submit a service ticket by choosing Service Tickets > Create Service Ticket in the upper right corner of the management console.