PolarDB for MySQL clusters provide various methods for restoring accidentally deleted or modified data. The method may vary based on the data level and database engine version. Select a method based on your business requirements.
Scenario | Database engine version | Restoration method |
Scenario | Database engine version | Restoration method |
Accidental table deletion | 5.6 | You can use the database and table restoration method to restore an accidentally deleted table to a point in time or from a backup set. |
5.7 |
8.0 | If the table recycle bin feature is enabled for the cluster, you can restore the table from the recycle bin. For more information, see Restore a table from the table recycle bin. If the table recycle bin feature is disabled for the cluster, you can use the database and table restoration method to restore the entire cluster. |
Accidental database deletion | 5.6 | You can use the database and table restoration method to restore an accidentally deleted database to a point in time or from a backup set. |
5.7 |
8.0 |
Accidental cluster deletion | 5.6 | For information about how to restore an accidentally deleted cluster, see Restore a cluster from the cluster recycle bin. |
5.7 |
8.0 |
Accidental data deletion. For example, accidental overwrite of all data, or accidental deletion or modification of columns, rows, or cells. | The number of affected data entries does not exceed 100,000 | We recommend that you restore data by using the data tracking feature of DMS, or the database and table restoration or cluster restoration method. |
The number of affected data entries exceeds 100,000 | 5.6 | You can use the database and table restoration method to restore the accidentally deleted database or table to a point in time or from a backup set. If you cannot determine the number of affected databases and tables, you can restore the entire cluster. |
5.7 |
8.0 |
FAQ
What are the differences between flashback query and database and table restoration features?