How to recover a corrupt SQLite3 database?

前端 未结 12 2120
走了就别回头了
走了就别回头了 2020-11-28 03:46

This is a follow up question to a previously answered post: Is there a command line utility for validating SQLite databases in Linux?

If a database is producing the

12条回答
  •  盖世英雄少女心
    2020-11-28 03:58

    With Sqlite 3.29.0 a new .recover command has been introduced to the CLI:

    Add the ".recover" command which tries to recover as much content as possible from a corrupt database file.

    sqlite3 broken.db ".recover" | sqlite3 new.db
    

提交回复
热议问题