# SQLCipher for JDBC - \[26\] \[SQLITE\_NOTADB\]

**URL:** <https://discuss.zetetic.net/t/sqlcipher-for-jdbc-26-sqlite-notadb/4318>\
**Category:** SQLCipher\
**Created:** [April 1, 2020, 5:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-jdbc-26-sqlite-notadb/4318 "2020-04-01T17:11:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asraro](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@asraro](https://discuss.zetetic.net/u/asraro)\
**Post date:** [April 1, 2020, 5:11pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-jdbc-26-sqlite-notadb/4318/1 "2020-04-01T17:11:21Z")

</div>

Hi,  
My SQLite DB file is encrypted and want to access it using DataGrip. I downloaded ‘SQLCipher for JDBC’ and trying to use the drivers with DataGrip for SQLite database. It’s throwing error when i try to access the DB.  
Here’s the output i see:

[2020-04-01 12:06:29] Connected  
sql\> PRAGMA cipher\_license = ‘xxxxxxx’  
[2020-04-01 12:06:29] 1 row retrieved starting from 1 in 36 ms (execution: 17 ms, fetching: 19 ms)  
sql\> PRAGMA cipher\_version;  
[2020-04-01 12:07:00] 1 row retrieved starting from 1 in 14 ms (execution: 6 ms, fetching: 8 ms)  
sql\> PRAGMA key=‘xxxxxxx’;  
[2020-04-01 12:07:28] 1 row retrieved starting from 1 in 15 ms (execution: 6 ms, fetching: 9 ms)  
sql\> SELECT count(\*) FROM sqlite\_master  
[2020-04-01 12:07:53] [26] [SQLITE\_NOTADB] File opened that is not a database file (file is not a database)

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [April 1, 2020, 9:54pm UTC](https://discuss.zetetic.net/t/sqlcipher-for-jdbc-26-sqlite-notadb/4318/2 "2020-04-01T21:54:42Z")

</div>

Hello @asraro - Can you tell us a bit about how the database file you are opening was encrypted? Can you confirm it was encrypted with SQLCipher (and not an alternate implementation), and what version of SQLCipher was used to encrypt it?
