This topic describes how to configure an IP address whitelist for an ApsaraDB RDS for MySQL instance. After an RDS instance is created, you must configure IP address whitelists for the RDS instance. A device can access the RDS instance only after you add the IP address of the device to an IP address whitelist of the RDS instance .
Prerequisites
Procedure
What to do next
Use a database client or the CLI to connect to an ApsaraDB RDS for MySQL instance
References
- For more information about how to modify an IP address whitelist for an RDS instance by calling an API operation, see Modify IP address whitelists.
- For more information about how to query the IP address whitelists of an RDS instance by calling an API operation, see Query IP address whitelists.
- For more information about how to configure an IP address whitelist for an RDS instance that runs a different database engine, see the following topics:
How to obtain IP addresses
Use scenario | IP address to be obtained | How to obtain the IP address |
---|---|---|
You want to connect to the RDS instance from an ECS instance, and the ECS instance and the RDS instance meet the conditions for communication over an internal network. For more information, see the "Step 1: Check whether your application can connect to the RDS instance over an internal network" section of this topic. | The private IP address of the ECS instance |
|
You want to connect to the RDS instance from an ECS instance. However, the ECS instance and the RDS instance do not meet the conditions for communication over an internal network. | The public IP address of the ECS instance | |
You want to connect to the RDS instance from an on-premises device. | The public IP address of the on-premises device | On the on-premises device, use a search engine such as Google to search for IP.
Note The IP address that you obtain by using this method may be inaccurate. For more information
about how to obtain the accurate IP address of an on-premises device, see Why am I unable to connect to my ApsaraDB RDS for MySQL or ApsaraDB RDS for MariaDB instance from a local server over the Internet?
|