sqlite关于The database disk image is malformed问题的解决
来源:互联网 发布:《优化设计》 编辑:程序博客网 时间:2024/05/29 03:16
这两天一个客户的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
好啦哈哈,终于好了,没有让客户失望。
- 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)的处理
- AMD64 Architecture
- Java的native关键字
- [置顶] java.lang.String cannot be cast to [Ljava.lang.Object;错误的原因很邪恶
- MD5加密
- 音频和Midi基础支持
- sqlite关于The database disk image is malformed问题的解决
- Axis2+ myeclipse 开发教程 配置与发布
- calling conventions:amd64
- 无监督特征学习:模拟简单细胞、复杂细胞属性的特征(上段工作总结)
- hex_to_bin的busybox实现
- c#根据绝对路径获取 带后缀文件名、后缀名、文件名
- ArcGIS For JavaScript API continuous pan across dataline(连续的平移跨越日界线)————(六)
- 织梦dede实现内容页所有的链接新窗口打开办法
- apache ActiveMQ 介绍