# How to access my mysql database from ionic app

**URL:** <https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488>\
**Category:** ionic-v1\
**Created:** [September 16, 2015, 1:15am UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488 "2015-09-16T01:15:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sham](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sham](https://forum.ionicframework.com/u/sham)\
**Post date:** [September 16, 2015, 1:15am UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488/1 "2015-09-16T01:15:54Z")

</div>

I am new to mobile development. I am most familiar with web development. i plan to create a web application in java (spring framework) and mobile application for my next project. the purpose of the mobile app is to input data and receive data from database. i learned a bit about API. but if i need to use API i want to change my backed of the mobile app to java or i can use it as java script.

---

<div class="post-metadata">

**Author:** ![Gillesm](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gillesm/32/91141_2.png) [@Gillesm](https://forum.ionicframework.com/u/Gillesm)\
**Post date:** [September 16, 2015, 3:18am UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488/2 "2015-09-16T03:18:09Z")

</div>

Hello,

You need to build an API in Java (or with an another language), It’s the best way to handle communication between your DB and the Ionic App.

IonicApp \<–\> API \<–\> Mysql

---

<div class="post-metadata">

**Author:** ![sham](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sham](https://forum.ionicframework.com/u/sham)\
**Post date:** [September 17, 2015, 7:27pm UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488/3 "2015-09-17T19:27:04Z")

</div>

Thank you for your replay. yeah i plan to use an API in JAVA to communicate with my DB

---

<div class="post-metadata">

**Author:** ![tego120](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tego120](https://forum.ionicframework.com/u/tego120)\
**Post date:** [September 17, 2015, 8:33pm UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488/4 "2015-09-17T20:33:47Z")

</div>

If someone have a tutorial to do this with Codeigniter. Please help.

---

<div class="post-metadata">

**Author:** ![sham](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sham](https://forum.ionicframework.com/u/sham)\
**Post date:** [September 20, 2015, 3:29am UTC](https://forum.ionicframework.com/t/how-to-access-my-mysql-database-from-ionic-app/32488/5 "2015-09-20T03:29:03Z")

</div>

Is it possible to create an app in ionic framework and build it as an Android app using Phonegap Build feature
