SQLite “database disk image is malformed”

后端 未结 2 1066
星月不相逢
星月不相逢 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题