sqlite关于The database disk image is malformed问题的解决
来源:互联网 发布:知乎玲珑邪僧 编辑:程序博客网 时间:2024/06/10 00:03
这两天一个客户的sqlite数据损坏了,我来帮他做恢复。
一般来说,用sqlite3执行以下命令就修复了。
sqlite3 old.db .dump > newsfeed.sql
sqlite3 new.db < newsfeed.sql
但是我尝试了好几次,修复之后的数据库都是0KB的。
几经周折我发现,损坏的数据库dump成sql之后,最后一行变成了ROLLBACK;
好家伙,全给我回滚了啊。
用emeditor把ROLLBACK;改成COMMIT;
再执行sqlite3 new.db < newsfeed.sql
0 0
- sqlite关于The database disk image is malformed问题的解决
- sqlite关于The database disk image is malformed问题的解决
- SQLite-database disk image is malformed问题的解决
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- 'ppm upgrade failed: DBD::SQLite::db selectrow_array failed: database disk image is malformed' 问题的解决
- 解决Couchbase出现DATABASE DISK IMAGE IS MALFORMED的问题。
- sqlite错误 database disk image is malformed 可解决
- SQLite数据库错误:The database disk image is malformed 解决(修复)方法
- SQLite数据库错误:The database disk image is malformed 解决(修复)方法
- sqlite 修复 database disk image is malformed 问题
- 修复SQLite-database disk image is malformed
- 修复SQLite-database disk image is malformed
- SQLite 损坏 database disk image is malformed
- 修复SQLite-database disk image is malformed
- SQLite出现database disk image is malformed(11)的处理
- 第一章
- window是系统杀死8080端口的线程
- JavaScript 数据结构
- sqlite错误 The database disk image is malformed database disk image is malformed 可解决
- archlinux - 多系统引导
- sqlite关于The database disk image is malformed问题的解决
- vector--list--deque对比
- IE下使用uploadify上传报:Uploadify-Script5007 Object expected
- Qt数据库之数据库和驱动
- 人类是怎么一步一步地教会机器说人话的?告诉你语音合成技术的前世今生
- 绕过WAF检测WebShell通信
- 【storm kafka】RROR fetching topic metadata for topics [Set(order)] from broker [ArrayBuffer(id:0,host
- 从头思考并查集
- 搭建基于GTID的复制方式