sqlite - How to recover a corrupt SQLite3 database? -
this follow question answered post: is there command line utility validating sqlite databases in linux?
if database producing following error:
$ sqlite3 mydata.db "pragma integrity_check" error: database disk image malformed
is there cleanup processing can done recover database usable state? @ potential loss of corrupt records?
thanks
if there automatic method, sqlite able it.
sometimes, corruption or in indexes, in case possible or records trying dump entire database .dump
, , use commands create new database:
$ sqlite3 mydata.db ".dump" | sqlite3 new.db
however, not possible.
the easiest , reliable way restore database file backup.
Comments
Post a Comment