Question

everyone.

I making an App.

But when i connect to external DB problem occurred.

So I looked for a way to connect to mysql.

But, all post was explain only use a web servies.

How to connect MySql without web servies?

Was it helpful?

Solution

I don't know if connecting directly to MySQL DB is safe. if you want to use a local SQL database, you may consider using SQLite.

Read this. you can add your sqlite database file to the assets folder in your application project and then extend and implement SQLiteOpenHelper to perform CRUD operations in your database.

You may also want to take a look at this as well. retrieving data using PHP sever is more secure.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top