mortenstarck
mortenstarck

Reputation: 2803

MySQL with MonoTouch

I'm quite new at using Monotouch and I want to make an app that can connect to my personal MySQL server at home.

I know how to do it in VS2010, but is it possible in MonoTouch?

It will be really helpful if you have a example.

Upvotes: 2

Views: 436

Answers (2)

mortenstarck
mortenstarck

Reputation: 2803

My solution is to host an small server at Amazon Cloud, where i have both my web service and an SQL server running. An bonus to that it's quit cheap. From my iPhone App im using WCF communication.

Upvotes: 0

competent_tech
competent_tech

Reputation: 44931

First, I am not sure if you can access a MySQL database directly from Monotouch or not.

However, even if you could, unless you are just using the database on your home network, it probably isn't a very good idea to expose your database to the internet.

I would suggest creating a web service using Visual Studio that performs all of the database interaction. You can then just expose the functionality that you need through the web service and use that web service interface from Monotouch.

Although there will be a bit of a learning curve to start with, this will definitely be a better long term solution.

Upvotes: 3

Related Questions