SQLite 提示database disk image is malformedTags 2008/9/3 sipo 发布 技术心得 分类 评论 2 浏览 1497SQLite有一个很严重的缺点就是不提供Repair命令。
导致死亡提示database disk image is malformed 有很多种可能,比如,磁盘空间不足,还有就是写入数据过程中突然掉电。 刚才在操作一个26万行的数据表的时候,突然掉电 再次执行SELECT指令就出现了database disk image is malformed 由于不知道错误出在哪个地方,无从修复 运行 PRAGMA integrity_check 发现 *** in database main *** On tree page 120611 cell 0: 3 of 4 pages missing from overflow list starting at 120617 On tree page 120616 cell 0: 3 of 4 pages missing from overflow list starting at 120621 On tree page 3309 cell 0: 3 of 4 pages missing from over -------------------------------------------------------------------------------------- google了一下,从N多劳苦大众的经验获知,如果遇到这种情况基本宣告SQLite死亡 居然没办法修复。 可爱的MYSQL 可以用REPAIR TABLE 来修复,可是SQLite就没有REPAIR TABLE MS SQL SERVER 也有Repair 方法,为什么SQLite就不来一个呢?? 恩,有时候趋之若鹜并不一定是好事 |
|