This topic describes how to change the network type of an ApsaraDB RDS for MySOL instance from classic network to virtual private cloud (VPC) based on your business requirements.
Prerequisites
For more information about how to change the network type of an RDS instance that runs a different database engine, see the following topics:
Impacts
The following table describes the impacts that a change in the network type may bring if the database proxy feature is enabled for your RDS instance. For more information, see Introduction to database proxies.
Proxy type | Impact |
---|---|
Shared proxy | After you change the network type of your RDS instance, the network type of the read/write
splitting endpoint changes. For more information, see Read/write splitting.
Note Since April 1, 2021, Alibaba Cloud has stopped the updates and maintenance for the
shared proxy feature of ApsaraDB RDS for MySQL. For more information, see [Notice] End of updates and maintenance for the shared proxy service. We recommend that you upgrade the database proxy of your RDS instance from shared
proxy to dedicated proxy at the earliest opportunity to use more features of higher
quality. For more information, see Upgrade the database proxy of an ApsaraDB RDS for MySQL instance from a shared proxy
to a dedicated proxy.
|
Dedicated proxy | After you change the network type of your RDS instance, the network type of the read/write
splitting endpoint remains unchanged. For more information, see Read/write splitting.
You can create proxy endpoints of different network types. For example, you can create a proxy endpoint of the classic network type and a proxy endpoint of the VPC network type on the same RDS instance. For more information, see Manage the dedicated proxy endpoints of an ApsaraDB RDS for MySQL instance. |
Network types
- Classic network: RDS instances in the classic network are not isolated. To block unauthorized access to these instances, you must configure IP address whitelists or security groups.
- VPC: Each VPC is an isolated virtual network. VPCs provide higher security than the
classic network. We recommend that you select the VPC network type.
You can configure route tables, CIDR blocks, and gateways in a VPC. In addition, you can connect your data center to a VPC by using Express Connect circuits or VPNs. The data center and the VPC comprise a virtual data center. You can use the virtual data center to migrate your workloads to the cloud with no downtime.
- You can select the classic or VPC network type and switch your RDS instance between these network types free of charge.
- After you change the network type of your RDS instance, you must add IP addresses to the IP address whitelists of the required network types. This applies if your RDS instance runs in enhanced whitelist mode. For more information, see Use a database client or the CLI to connect to an ApsaraDB RDS for MySQL instance.
View the network type
- Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
- In the left-side navigation pane, click Database Connection. On the page that appears, view the network type of the RDS instance.
Change the network type from classic network to VPC
Procedure
FAQ
- How do I change the VPC of my RDS instance?
- If your RDS instance supports changes to VPCs and vSwitches, you can directly change the VPC of the RDS instance. For more information, see Change the VPC and vSwitch for an ApsaraDB RDS for MySQL instance.
- If your RDS instance does not support direct changes to VPCs, perform the following
steps:
Purchase a new RDS instance that resides in the required VPC. Then, migrate the data of the original RDS instance to the new RDS instance. For more information, see Migrate data between ApsaraDB RDS for MySQL instances.
- Can I connect to my RDS instance from an ECS instance over the Internet?
Yes, you can connect to your RDS instance from an ECS instance over the Internet if the IP address of the ECS instance is added to an IP address whitelist of the RDS instance, regardless of whether your application resides in a VPC or the classic network. For more information, see Use a database client or the CLI to connect to an ApsaraDB RDS for MySQL instance.
- Can I change the network type of a read-only RDS instance and retain the classic network
endpoint?
Yes, you can change the network type of a read-only RDS instance and retain the classic network endpoint.
Related operations
Operation | Description |
---|---|
Change the network type of an ApsaraDB RDS instance | Changes the network type of an ApsaraDB RDS instance. |