# Unable to establish connection with existing encrypted SQLCipher Db

**URL:** <https://discuss.zetetic.net/t/unable-to-establish-connection-with-existing-encrypted-sqlcipher-db/1196>\
**Category:** SQLCipher\
**Created:** [February 29, 2016, 1:54pm UTC](https://discuss.zetetic.net/t/unable-to-establish-connection-with-existing-encrypted-sqlcipher-db/1196 "2016-02-29T13:54:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakhan\_mahajan](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@lakhan\_mahajan](https://discuss.zetetic.net/u/lakhan_mahajan)\
**Post date:** [February 29, 2016, 1:54pm UTC](https://discuss.zetetic.net/t/unable-to-establish-connection-with-existing-encrypted-sqlcipher-db/1196/1 "2016-02-29T13:54:56Z")

</div>

I am trying to establish connection with existing encrypted SQLCipher DB but stuck with “error code 14: Could not open database”, even failed to created connection with new using “SQLiteDatabase.openOrCreateDatabase(“demo.db”, Test123”, null);"  
I think problem exist due to incorrect DB path  
Can Anyone please share demo code to connect already encrypted database

Thanks

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [February 29, 2016, 5:28pm UTC](https://discuss.zetetic.net/t/unable-to-establish-connection-with-existing-encrypted-sqlcipher-db/1196/2 "2016-02-29T17:28:45Z")

</div>

Hi @lakhan_mahajan

You may wish to review the SQLCipher for Android [test suite](https://github.com/sqlcipher/sqlcipher-android-tests).
