简体   繁体   中英

How do you get data from a remote MySQL database into your app?

Have just finished a couple of tutorials regarding populating a SQLite database with data and then using this data within your app. However none of these tutorials show how to connect to a remote server in order to obtain data.

QUESTION:

How do you get data from a remote MySQL database into your app?? What options do you have?

Remote access is not a good idea, you would have to allow everyone to access it since it's an app. The best way to go about this is to build a layer between your app and database. From the app you would access a server side script which does the database work and responds to your app.

Well there are methods to allow remote access to your mysql database on your server and being able to query the database remotely. I think this is the cleanest solution. Check out this link: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM