DatabaseError: file is encrypted or is not a database

来源:互联网 发布:linux基础教程 编辑:程序博客网 时间:2024/05/21 22:31

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
原创粉丝点击