How to recover just deleted rows in mysql?

前端 未结 8 810
长情又很酷
长情又很酷 2020-12-01 04:24

Is it possible to restore table to last time with data if all data was deleted accidentally.

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 05:13

    Unfortunately, no. If you were running the server in default config, go get your backups (you have backups, right?) - generally, a database doesn't keep previous versions of your data, or a revision of changes: only the current state.

    (Alternately, if you have deleted the data through a custom frontend, it is quite possible that the frontend doesn't actually issue a DELETE: many tables have a is_deleted field or similar, and this is simply toggled by the frontend. Note that this is a "soft delete" implemented in the frontend app - the data is not actually deleted in such cases; if you actually issued a DELETE, TRUNCATE or a similar SQL command, this is not applicable.)

提交回复
热议问题