Help Center > > User Guide> Working with RDS for MySQL> Instance Lifecycle> Recycling a DB Instance

Recycling a DB Instance

Updated at: May 14, 2021 GMT+08:00

You can recycle unsubscribed yearly/monthly DB instances and deleted pay-per-use DB instances within the configured retention period to rebuild DB instances from the recycle bin.

If resources are not renewed after expiration, you can rebuild DB instances from the recycle bin to restore data.

Read replicas cannot be recycled.

The recycle bin is enabled by default and cannot be disabled.

Modifying Recycling Policy

The new recycling policy takes effect only for DB instances that are put into the recycle bin after the modification. For DB instances that already exist in the recycle bin before the modification, the original recycling policy takes effect.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Database > Relational Database Service. The RDS console is displayed.
  4. In the navigation pane on the left, choose Recycling Management.
  5. On the Recycling Management page, click Modify Recycling Policy. In the displayed dialog box, set the retention period for the deleted DB instances from 1 day to 7 days.
  6. Then, click OK.

    Figure 1 Modifying the recycling policy

Rebuilding a DB Instance

You can rebuild DB instances in the recycle bin within the retention period.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Database > Relational Database Service. The RDS console is displayed.
  4. In the navigation pane on the left, choose Recycling Management.
  5. On the Recycling Management page, locate the target DB instance to be rebuilt and click Rebuild in the Operation column.
  6. On the Rebuild DB Instance page, configure required information and submit the rebuild task. For details, see Restoring from Backup Files to DB Instances.

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