Also what's your journal_mode and synchronous setting? ( http://www.sqlite.org/pragma.html#pragma_synchronous)
Depending on how these are set, if your application terminates early, or system crashes, you will likely corrupt your DB. 2010/10/30 Martin Engelschalk <engelsch...@codeswift.com> > Hello Lizhe, > > in order for the members in this list to help you, please provide more > details. > First, the most probable cause for this error is that the database file > is in fact corrupted in some way or is not a sqlite database file. > What step/steps leads to corruption? > What sqlite function returns the error? > does the error occur always, or only with a certain statement? > Can you access the file with the sqlite command line utility? > How was the file created? Do you have a file which is ok? > > Martin > > Am 30.10.2010 09:21, schrieb lizhe: > > 您好: > > 我们使用的SQLITE3 > 数据库版本为3.6.23.1版本,在红帽编译器下运行,运行的硬件系统为LINUX(2.6版本),现在出现了一个问题,长时间运行后会出现查询数据库返回"The > database disk image is malformed", > > 请问这是什么原因造成的.如何解决,使用最新版本3.7.2是否会避免出现这个问题? > > > > > > Dear Sir: > > > > I am writing to enquire about a bug we found. Now the SQLITE3 > database we use is version 3.6.23.1, which running in the red hat compiler > and the hardware system is Linux(version 2.6).We have a problem that for > select database(SQL),return "The database disk image is malformed" ,How to > solve my trouble? Is use version 3.7.2 ? Do you have any idea about this? I > would like get support for SQLite ? > > Wish you happiness ! > > > > > Yours sincerely, > > > Lizhe > > > > _______________________________________________ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users