Connection Diagnosis checks whether an Elastic Compute Service (ECS) instance or a specific IP address can reach your PolarDB for MySQL cluster. Run this check to verify network connectivity before connecting your application, or to isolate the cause of a connection failure.
Prerequisites
Before you begin, ensure that you have:
-
A PolarDB for MySQL cluster in the PolarDB console
-
The ID of the ECS instance or the IP address of the client you want to test
Run a connectivity check
-
Log on to the PolarDB console.
-
In the upper-left corner, select the region where your cluster is deployed.
-
Find the cluster and click its cluster ID.
-
On the Overview page, go to the Whitelists and Database Accounts section and click Connection Diagnosis.

-
Set Input Method based on your connection source:
-
ECS Instance — if the client is an ECS instance. Enter the instance ID in ID of ECS instance (No Cross region Connection).
NoteOnly ECS instances in the same region as the cluster are supported. Cross-region connections are not checked.
-
IP Address — if you want to test a specific client IP address. Enter the address in Client IP Address.
-
-
Click Check.