static String DB_PATH = "/data/data/com.yuzhiyun.chemistry/databases/"; static String DB_NAME = "sqlite3.db"; private SQLiteDatabase db; this.db = SQLiteDatabase.openDatabase(DB_PATH+DB_NAME,null,SQLiteDatabase.OPEN_READWRITE);
代码如上,在执行SQLiteDatabase.openDatabase()的时候出现了这个错误:
file is encrypted or is not a database
后来网上有人说是sqlite的版本问题,不明就里的我查看了一下使用的数据库,版本是2,我立刻用Navicate重新建了一个sqlite数据库连接,选择版本3,再把数据导入,结果就不会出现这个错误了,具体的原因我还不明白。
相关推荐
android 9.0及其以上版本手机 操作数据库,再打开数据库db文件出现 “File opened that is not a database file file is encrypted or is not a database”android 9.0以下的版本 不会出现。 原因及解决方法。
DB2 v9.7 java development
对数据加密分两种,一种是对...System.Data.SQLite.SQLiteException:“file is encrypted or is not a database , 正确的连接方式就是在连接字符串中提供正确的密码: using System; using System.Collections.Gen
A complete database is stored in a single (possibly encrypted) disk file. Supports terabyte-sized databases and gigabyte-sized strings and blobs. Self-contained: no external dependencies, no DLLs. ...
A complete database is stored in a single (possibly encrypted) disk file. Supports terabyte-sized databases and gigabyte-sized strings and blobs. Self-contained: no external dependencies, no DLLs. ...
A complete database is stored in a single (possibly encrypted) disk file. Supports terabyte-sized databases and gigabyte-sized strings and blobs. Self-contained: no external dependencies, no DLLs. ...
An Internet Exchange Points (IXP) (typically in a standalone building with its own switches) is a meeting point where multiple ISPs can connect and/or peer together. An ISP earns its money by ...
tolerant if a server was down for a day or two. Today, email has become an extremely important, if not primary, method of communication for organizations. Downtime on an Exchange server can bring an ...
18)..Fixed: Possible "Unit XYZ was compiled with a different version of ABC" when using packages 19)..Fixed: FastMM shared MM compatibility 20)..Fixed: Minor bugs in stack tracing (which usually ...
+ added option EmbedProt which allows to disable embedding fonts into an encrypted PDF file + added TfrxDateEditControl.WeekNumbers property - fixed bug in XML and PDF exports with Korean charmap - ...