Help Center > > User Guide> Working with RDS for MySQL> Instance Management> Manually Switching Between Primary and Standby DB Instances

Manually Switching Between Primary and Standby DB Instances

Updated at: Dec 29, 2020 GMT+08:00


If you choose to create primary/standby DB instances, RDS will create a primary DB instance and a synchronous standby DB instance in the same region. You can access only the primary DB instance. The standby instance serves as a backup. You can manually promote the standby DB instance to the new primary instance for failover support.


  1. A DB instance is running properly.
  2. The replication relationship between the primary and standby instances is normal.


  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Instance Management page, click the target DB instance.
  5. In the DB Information area on the displayed Basic Information page, click Switch in the DB Instance Type field.

    Alternatively, click in the DB instance topology on the Basic Information page to perform a primary/standby switchover.

    Primary/standby switchover may cause service interruption for some seconds or minutes (determined by the replication delay). If the primary/standby synchronization delay is too long, a small amount of data may get lost. To prevent traffic congestion, you are advised to perform switchover during off-peak hours.

  6. If you have enabled the operation protection function, click Send Code in the displayed Identify Verification dialog box and enter the obtained verification code. Then, click OK.

    Two-factor authentication is required to improve the security of your account and cloud product. For details about how to enable operation protection, see the Identity and Access Management User Guide.

  7. In the Switch Primary/Standby Instances dialog box, click Yes to switch between the primary and standby DB instances.

    If the replication status is Available and the replication delay is greater than 300s, the primary/standby switchover task cannot be delivered.

  8. After a switchover is successful, you can view and manage the DB instance on the Instance Management page.

    • During the switchover process, the DB instance status is Switchover in progress.
    • In the upper right corner of the DB instance list, click to refresh the list. After the switchover is successful, the DB instance status will become Available

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel