Updated on 2023-07-06 GMT+08:00

Recycling a DB Instance

The recycling policy is enabled by default and cannot be disabled. Deleted DB instances are retained for 1 day. You are not charged for the recycling policy.

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 Service List. Under Database, click Relational Database Service. The RDS console is displayed.
  4. On the Recycling Management page, click Modify Recycling Policy. In the displayed dialog box, click to enable the recycling policy. Set the retention period for the deleted DB instances from 1 day to 7 days. 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 to restore data.

  1. On the Recycling Management page, locate the target DB instance to be rebuilt and click Rebuild in the Operation column.
  2. On the Rebuild DB Instance page, configure required information and submit the rebuild task. For details, see Restoring from Backup Files to RDS for MySQL.