drop table or drop database, the database will not physically delete the data immediately, but keep it in Trash for a period of time (1 day by default). Administrators can recover the mistakenly deleted data with the RECOVER command.
Related commands
Syntax:Notes
- This operation can only restore the deleted meta information. The default time is 1 day, which can be configured by the
catalog_trash_expire_secondparameter infe.conf. - If new meta information of the same name and type is created after the meta information is deleted, the previously deleted meta information cannot be restored.
Examples
-
Recover the database named
example_db -
Recover the table named
example_tbl -
Recover the partition named
p1in the tableexample_tbl