How to repair an SQLite database

echo ".dump" | sqlite3 old.db | sqlite3 new.db

Explanation: pipe “.dump” to sqlite and use that output (the dump itself) to fill the new.db database.

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment