This topic describes how to switch an ApsaraDB RDS for MySQL instance to a new virtual private cloud (VPC) and a new vSwitch.

Background information

  • If your RDS instance uses local SSDs, you can switch the instance to a new VPC and a new vSwitch.
  • If your RDS instance uses standard or enhanced SSDs, you can switch the instance to a new vSwitch. However, you cannot switch the instance to a new VPC.
Note For more information about how to switch an ApsaraDB RDS for PostgreSQL instance to a new VPC and a new vSwitch, see Switch an ApsaraDB RDS for PostgreSQL instance to a different vSwitch.

Impacts

  • The switching causes a 30-second brief connection error. Make sure that your application is configured to automatically reconnect to your RDS instance.
  • The switching causes changes to the virtual IP addresses (VIPs) of your RDS instance. We recommend that you connect your application to your RDS instance by using an endpoint. For more information, see Configure endpoints for an ApsaraDB RDS for MySQL instance.
  • The VIP changes temporarily interrupt the connection to DRDS . You must update and view the connection information in the DRDS console.
  • The VIP changes temporarily interrupt the connections to Data Management (DMS) and Data Transmission Service (DTS). After the switching is completed, these connections are restored to normal.
  • If data is cached on a client, you can read data but cannot write data. After the switching is completed, we recommend that you immediately clear the cache on the client.

Procedure

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Connection.
  3. In the upper part of the Database Connection page, click Switch vSwitch.
  4. Select a VPC and a vSwitch. Then, click OK.
    Note If you want to create a VPC and a vSwitch, you can click go to the VPC console.
  5. In the message that appears, click OK.

FAQ

If I cannot switch my RDS instance to a new VPC and a new vSwitch, how do I change the VPC of the instance?

  • If you can switch your RDS instance between the classic and VPC network types, perform the following steps:
    1. Switch your RDS instance from the VPC network type to the classic network type.
    2. Switch your RDS instance from the classic network type to the VPC network type. During this process, select the VPC that you require.
  • If you cannot switch your RDS instance between the classic and VPC network types, perform the following steps:

    Purchase a new RDS instance. During this process, select the VPC that you require. Then, migrate the data of your RDS instance to the new RDS instance. For more information, see Migrate data between ApsaraDB RDS for MySQL instances.

References

For more information about how to change the VPC and vSwitch of an RDS instance that cannot be switched to a new VPC and a new vSwitch, see Change the VPC for an ApsaraDB for RDS instance.