I am trying to access a remote MySql database from my iPhone application. I googled, but I can’t find anything that works. Can any one suggest a clear way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since the iOS SDK does not contain any API’s that can access a MySQL database, you have two options:
Of the two, nbr. 2 is by far the easiest, and the normal way to do that is to set up a web service somewhere that you can talk to.
You will have to implement web service methods for whatever kinds of operations you need to perform on your MySQL database.
Exactly how to talk to that web service, and exactly how to talk to the MySQL server from your web service, those are separate questions.