vibhav patil
vibhav patil

Reputation: 61

Can anyone solve this issue? I cannot connect to local host "Xamarin" "C"

I followed one tutorial on how to connect to Mysql database. It connected to db4free.net , But its refusing to connect to localhost. Needed Help... enter image description here

Upvotes: 0

Views: 219

Answers (1)

tequila slammer
tequila slammer

Reputation: 2879

What you are doing is, that you try to connect to the localhost on your phone. And there won't be any instance of MySql. A better and more recommended way is to abstract the database behind a webservice. Than you can easily communicate with that service inside your app.

Please read the Xamarin guide about webservices for further information on that topic.

Upvotes: 1

Related Questions