thomassantosh
thomassantosh

Reputation: 607

Issue in using sqlcipher, error returned: "file is not a database"

Apologies if the solution is buried somewhere in another thread or post. I could not find anything specific to this. I’m getting [Error: file is not a database].

My scenario:

Is this different versions that is causing the issue?

Upvotes: 3

Views: 2191

Answers (1)

thomassantosh
thomassantosh

Reputation: 607

Had posted the above question at the following link as well: https://discuss.zetetic.net/t/error-file-is-not-a-database/4434 (copied the response below)

"This discussion forum post should point you in the correct direction: Upgrading to SQLCipher 4 1 (https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283). It sounds like your database was created using SQLCipher v3 and you’re attempting to open it using SQLCipher v4. To verify this assumption is correct, you can run PRAGMA cipher_version on each side."

The above was helpful to convert a 3.4 encrypted file into a 4.x version. However, to upgrade my Linux install to 4.x, these instructions were super helpful: https://github.com/sqlitebrowser/sqlitebrowser/wiki/SQLCipher:-Build-from-Source-on-Debian-Stretch---Newbie-Instructions

Upvotes: 0

Related Questions