sqlite数据库报错:database disk image is malformed
来源:互联网 发布:ip 80端口需要备案不 编辑:程序博客网 时间:2024/06/04 18:15
SQLite有一个很严重的缺点就是不提供Repair命令。
导致死亡提示database disk image is malformed
它的产生有很多种可能,比如,磁盘空间不足,还有就是写入数据过程中突然掉电等。
官方对产生原因的一些说明: http://www.sqlite.org/lockingv3.html#how_to_corrupt
sqlite my.sqlite3sqlite>PRAGMA integrity_check;
获得提示
*** in database main ***Page 1518: btreeInitPage() returns error code 11On tree page 1566 cell 2: Child page depth differsOn tree page 1566 cell 3: Child page depth differsSQL error: database disk image is malformed
可以尝试通过简单的导出导入方式对损坏的库文件作回复。
首先导出数据
sqlite3 my.sqlite3sqlite>.output tmp.sqlsqlite>.dumpsqlite>.quit
再倒入到一个新库中
sqlite3 mynew.sqlite3sqlite>.read tmp.sqlsqlite>.quit
这时新建的mynew.sqlite3一般可用。
Popularity: 100% [?]
0 0
- sqlite数据库报错:database disk image is malformed
- SVN 报错 sqlite[S11]: database disk image is malformed
- SVN 报错 sqlite[S11]: 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
- svn报错解决方法:svn:E200030: sqlite[S11]:database disk image is malformed
- SQLITE写入大量大数据时,报错ERR 11:database disk image is malformed
- SVN报database disk image is malformed
- 普票系统报错 database disk image is malformed
- CentOS 报错 Error: 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 可解决
- 第一章,Hello World(Lua)
- QT for Android 使用Item作为QML根对象
- 微软100题(96)strcpy的实现
- virtualenv安装
- 寻找第K大的数
- sqlite数据库报错:database disk image is malformed
- 算法学习之数组元素查找
- Java相对路径读取文件
- ubuntu 下 eclipse Ctrl+Alt+Down 不工作
- sizeof与offsetof有关的结构体详解
- SIFT算法的应用--目标识别之Bag-of-words模型
- 修改xshell字体
- Hadoop2.6 Ha 安装
- Netperf安装使用