DatabaseError: file is encrypted or is not a database

DatabaseError: file is encrypted or is not a database

There are typically three situations in which this somewhat cryptic error message can be seen:

  • when trying to modify the database file and the write permission is missing; fix the permissions
  • when accessing a SQLite 2.x database file with a SQLite 3.x library; see above for the upgrade instructions.
  • when accessing a database that has been created in or explicitly converted to WAL mode, using a version of SQLite older than 3.7.0 (i.e. with no WAL support); upgrade your bindings to use a recent SQLite

你可能感兴趣的:(sqlite,File,database,library)