Troubleshoot the error "DMS cannot establish a connection with the MySQL server. Check whether the connection address is correct, the network is unblocked, and the whitelist is configured before trying again."
Problem description
When you use Data Management (DMS) to connect to a self-managed MySQL database on an ECS instance, the following error is returned: "DMS cannot establish a connection with the MySQL server. Check whether the connection address is correct, the network is unblocked, and the whitelist is configured before trying again."
Causes and solutions
|
Cause |
Solution |
|
MySQL is not running on the ECS instance. |
|
|
The ECS firewall blocks the DMS connection. |
|
|
The ECS security group blocks DMS access. |
Add a security group rule to allow the DMS IP addresses or CIDR blocks. Add a security group rule. |
|
The MySQL root account allows only localhost connections. |
|
Applicable scope
-
DMS