The user’s public IP address is unfixed and the IP address located by the local IP address query tool is not correct. When the ApsaraDB is connected, an error occurs even if a local IP address found is added to the white list of the ApsaraDB for MySQL.
Add the IP address 0.0.0.0/0 or the IP segment of your company to the whitelist of the ApsaraDB for MySQL. For the operating method, refer to Set a white list.
Use the MySQL client to connect to the ApsaraDB for MySQL.
mysql -hRDS link address -u account -p password -P3306
Check the process information.
The query results are shown in the following figure. The Host corresponding to show processlist of the Info field in the process is your outbound IP address.