遇到 sqlite3 数据库错误 “database disk image is malformed”,G 了一下,搞定,遂记录,帮人帮己。运行 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 假设原数据库名abc.db 运行命令(需要sqlite3命令行工具,可从官方下载http://www.sqlite.org/download.html)