简体   繁体   中英

Remote MS SQL or MySQL Database on iOS

I currently have a website that uses MS SQL and I am interested in creating an iOS client for that website. I would the app to connect to a remote SQL database that is hosted on my website and then I could pull information from that database and display it locally on the device. I would like to also publish information to the database. I am open to use MySQL.

Is this possible and if so does anyone know of any good tutorials that I could check out?

I'd highly recommend placing a thin web layer between your database and your iOS client. You don't want iOS apps connecting directly to your database (unless this is for your own personal use for limited to a handful of people you really trust).

You could write the web layer in PHP (or whatever you fancy). At that point you can use HTTP and JSON between your iOS app and your database.

在手机和数据库之间放置一个Web服务。

There are two options :

  • You can develop webservices/scripts or whatever server side solution that will make your database talk "publicly"
  • Use a third-party library ( like this ) that will make your app communicate with the MySQL database.

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