SQLCipher 4.5.5
Get error SQLITE_NOTADB from
sqlite3_exec(database, (const char*) “SELECT count(*) FROM sqlite_master;”, NULL, NULL, NULL);
But I can open the .sqlite file manually and run the above sql without any problem.
here’s the Stack
SQLCipher 4.5.5
Get error SQLITE_NOTADB from
sqlite3_exec(database, (const char*) “SELECT count(*) FROM sqlite_master;”, NULL, NULL, NULL);
But I can open the .sqlite file manually and run the above sql without any problem.
here’s the Stack
That error indicates that you are attempting to do one of the following:
Thanks, but the database is encrypted since I need to enter a password to open the .sqlite.
And the database is created and opened with same SQLCipher (tried v3.4.2 and v4.5.5)
What I see is:
Any idea? Thanks in advance
How exactly are you opening the .sqlite file “manually” and entering the password?
You shouldn’t be able to open the same database using both v3.4.2 and v.4.5.5 with the default settings. They use different encryption properties that make them incompatible by defaults. We need details on how exactly you are opening the files, exact programs, commands, etc.