SQLite “database disk image is malformed”

后端 未结 2 1037
星月不相逢
星月不相逢 2021-02-20 15:44

I am having trouble with an app where the SQLite database is getting corrupted. There was the odd case of this previously, but it seems to have become a lot more common after t

相关标签:
2条回答
  • 2021-02-20 16:28

    I had this problem too on iOS 7.0.6 using FMDB. I repaired it by copying to the Mac and using these commands:

    http://www.dosomethinghere.com/2013/02/20/fixing-the-sqlite-error-the-database-disk-image-is-malformed/

    My database dump was rather large at 200MB so I used Hexfiend to cut the transaction and rollback commands.

    0 讨论(0)
  • 2021-02-20 16:29

    sqlite: database disk image is malformed

    In your case, you may consider checking your Integrity Check results. That's how I've solved my problem.

    0 讨论(0)
提交回复
热议问题