Search code examples
mysqlobjective-cdatabasecore-datasequelpro

How to connect an iOS app to a database (mySQL & SequelPro)?


I'm searching for a way to connect an app with a database, created in Sequel Pro which is connected with a mySQL Server (started over MAMP). I've already searched for some solutions but there are hundreds of different posts, some said that SQLite will be the only possibility, some others said that CoreData will be perfect.

Now I found a framework called 'MCPKit', but this framework isn't really up-to-date and it looks like Apple itself also recommends CoreData for Data Management. (https://developer.apple.com/technologies/ios/data-management.html)

I'm not familiar with CoreData and I'll be very happy if someone knows an other way to build up the connection.

I try to be as specific as possible but if you already have some questions, please ask.


Solution

  • Connecting to a mysql database IS possible. I did it via php which returned an xml file which my app parsed and stored.

    This link also covers this topic as well.

    How to connect to a MySQL database from an iPhone?