解决SQLite3数据库Error: database disk image is malformed

时间:2015-01-04 11:59:54   收藏:0   阅读:377
//file是坏掉的数据库  file2是坏掉的表
`sqlite3 $file ".dump $file2" | grep -v "ROLLBACK" >> /appslog/db/tmp.sql` `echo "COMMIT;" >> tmp.sql` `sqlite3 $file < /appslog/db/tmp.sql` `rm -rf /appslog/db/tmp.sql`

 

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!