This topic describes how to switch to a new VPC and VSwitch for an RDS MySQL instance.

Background information

  • For local SSD instances, you can modify Virtual Private Cloud and vSwitch directly.
  • For standard SSD or ESSD instances, you can only modify the vSwitch, not the Virtual Private Cloud.
Note For more information about how to switch between the PostgreSQL engine Virtual Private Cloud and vSwitch, see Switch to a new VSwitch for an RDS PostgreSQL instance.

Impact

  • The RDS instance is disconnected for about 30 seconds during the switchover. Make sure that your application can automatically reconnect to the RDS instance.
  • The virtual IP address of the RDS instance changes after the switchover. We recommend that you use an endpoint of the RDS instance to establish a connection.
  • The DRDS is unavailable for a short period of time due to the change to the virtual IP address during the switchover. You must update and view the connection information of the RDS instance in the console immediately after the switchover is complete.
  • The DMS and DTS is unavailable for a short period of time due to the change to the virtual IP address during the switchover, and automatically returns to normal after the switchover is complete.
  • You must clear the cache on your database client properly. If you do not do so, data can be read but cannot be written into the RDS instance.

Procedure

  1. Log on to the ApsaraDB for RDS console.
  2. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where the target RDS instance resides.
    Select a region
  3. Find the target instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. In the upper-right corner, click Switch VSwitch.
    切换交换机
  6. Select a VPC and a VSwitch, then click OK.
    Note To create a VPC or VSwitch, click go to the VPC console.
    选择VPC和虚拟交换机
  7. In the displayed dialog box, click the button for confirming the switchover.

FAQ

How do I change the VPC of an RDS instance if that instance does not allow me to switch to a new VPC and VSwitch?

Documentation

For instances that do not support switching Virtual Private Cloud and vswitches directly, see Change the VPC for an ApsaraDB for RDS instance.