# Unable to open database Error

**URL:** <https://forum.ionicframework.com/t/unable-to-open-database-error/75839>\
**Category:** ionic-v3\
**Created:** [January 11, 2017, 7:30am UTC](https://forum.ionicframework.com/t/unable-to-open-database-error/75839 "2017-01-11T07:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vks\_gautam1](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vks\_gautam1](https://forum.ionicframework.com/u/vks_gautam1)\
**Post date:** [January 11, 2017, 7:30am UTC](https://forum.ionicframework.com/t/unable-to-open-database-error/75839/1 "2017-01-11T07:30:32Z")

</div>

Unable to open database Error: Valid iOS database location could not be determined in openDatabase call  
i am running my app in android and getting following error

`
 let db = new SQLite();
            db.openDatabase({
                name: "data.db",
                location: "default"
            }).then(() => {
                db.executeSql("CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY AUTOINCREMENT, firstname TEXT, lastname TEXT)", {}).then((data) => {
                    console.log("TABLE CREATED: ", data);
                }, (error) => {
                    console.error("Unable to execute sql", error);
                })
            }, (error) => {
                console.error("Unable to open database", error);
            });
    `

---

<div class="post-metadata">

**Author:** ![preservance717](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@preservance717](https://forum.ionicframework.com/u/preservance717)\
**Post date:** [February 1, 2018, 11:07am UTC](https://forum.ionicframework.com/t/unable-to-open-database-error/75839/2 "2018-02-01T11:07:54Z")

</div>

i meet the same problem,have you solve this problem
