- Documentation
RDS for MySQL
User guide
Managing connections
Managing access addresses and ports
Modifying an instance's private network and subnet
Managing access addresses and ports
Modifying an instance's private network and subnet
Modifying an instance's private network and subnet
RDS for MySQL supports modifying the network configuration of an instance, such as changing the Virtual Private Cloud and subnet. This topic describes the steps to modify the instance network configuration.
Prerequisites
An instance has been created, and its state is Running.
Precautions
- You cannot modify the network configuration of an instance that is connected using PrivateLink.
- Modifying the network configuration may cause one to two brief service interruptions. Proceed with caution. It is recommended that you add a reconnection mechanism to the application, which can greatly reduce the impact of database disconnection on the business. Confirm the following risks before the operation:
- Confirm the following risks before executing the operation: Modifying the VPC and subnet does not change the private domain name, but the private IP address will change.
- Modifying the VPC and subnet can temporarily affect the use of ecosystem database products such as Database Transmission Service (DTS) and Database Workbench (DBW).
- Promptly clear the client cache, or else read/write exceptions may occur.
Procedure
- In the upper-left corner of the top menu bar, select the project and region for the instance.
tip
If the project of the instance has not been set, the project should be selected as All resources.
- On the Instances page, click the target instance name.
- On the Summary tab, click the edit icon after Virtual Private Cloud/Subnet.
- In the pop-up Modify network information dialog box, complete the following settings and then click OK.
- Confirm the domain name involved in the network configuration modification.
- Select a new Virtual Private Cloud and Subnet.
tip
Only Virtual Private Clouds and Subnets under the project specified in the top navigation bar can be selected.
- Read the data risks involved in modifying network configuration and check the box for the risk prompt.
tip
After clicking OK, the instance status changes to Network changing. After the execution of the network configuration of the instance to be modified, the instance state changes to Running.
Last updated: 2026.04.01 10:47:09