Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLITE_NOTADB: file is not a database with SQLCipher #6057

Open
shangbinpan opened this issue Apr 16, 2024 · 0 comments
Open

SQLITE_NOTADB: file is not a database with SQLCipher #6057

shangbinpan opened this issue Apr 16, 2024 · 0 comments

Comments

@shangbinpan
Copy link

Environment

Knex version:3.1.0
Database + version: sqlite3
OS: windows

Bug

  1. I have an encrypted SQLite database(by sqlcipher ). I have followed this documentation to generate an encrypted database using this Guideline. My Knex configuration goes here. When I created an encrypted database I set the password as "password".
    image

  2. Error message
    Error: select * from sqlite_master where type = 'table' and name = 'knex_migrations' - SQLITE_NOTADB: file is not a database

  3. Reduced test code, for example in Github Repo. When I try to run the migrations it is throwing an error of file is not a database. According to the documentation I have set PRAGMA KEY = 'password'. Still, it is not working. Can anyone help me out here? Please share if you have any knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant