如何访问mysql远程数据库 [英] how access mysql remote database

查看:109
本文介绍了如何访问mysql远程数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建inapp购买订阅模块, 在这个应用程序中,我想访问远程数据库,但问题是我如何连接 服务器上带有mysql的我的Objective-C代码,

i m creating inapp purchage subscription module, in this app i want to access remote database but problem is that how i connect my objective-c code with the mysql on the server,

我找不到足够的参考,如果有任何参考或解决方案,请帮助我.

i am not found any sufficient refrence please help me if any refrence or solution is there.

推荐答案

您可能应该创建一个Web服务来访问远程mySQL服务器数据库.然后,您可以使用NSMutableURLRequest向服务发送请求.如果您需要返回数据,请返回json,因为它比XML更轻量.

You should probably create a web service to access the remote mySQL server database. You can then send a request to the service using NSMutableURLRequest. If you need to return data back, return json since its more light weight than XML.

这篇关于如何访问mysql远程数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆