Updated on 2023-09-26 GMT+08:00

Clearing Binlogs

Scenarios

You can clear local binlogs with a few clicks for RDS for MySQL instances to free up storage space.

Binlog Clearing Based on Specified Retention Period

RDS for MySQL allows you to clear the binlogs exceeding the specified retention period with just a few clicks.

Precautions

  • To use this function, you need to contact customer service to apply for required permissions.
  • There is a delay in clearing binlogs. Every time after clearing binlogs, check whether the storage occupied by these binlogs was released. Do not submit the request multiple times.
  • The following binlogs cannot be cleared using this function:
    • Binlogs that are not backed up to OBS yet
    • Binlogs that have not been synchronized to the standby instance
    • Binlogs that have not been received by the incremental backup parsing tool

Procedure

  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 Databases > Relational Database Service.
  4. On the Instances page, click the DB instance name.
  5. In the navigation pane, choose Backups & Restorations. On the Binlog Backups tab page, click Clear Binlogs.
  6. In the displayed dialog box, click OK.

    Figure 1 Clearing binlogs