连接到远程数据库...在线数据库 [英] Connect to remote database...online database
问题描述
我一直在寻找一个星期了......我需要一些帮助连接到远程数据库的...我想我的应用程序将数据从数据库中,并更新数据库... 香港专业教育学院尝试这种<一个href="http://www.helloandroid.com/tutorials/connecting-mysql-database">http://www.helloandroid.com/tutorials/connecting-mysql-database但我不理解这一点。
Ive been looking for a week now...i need some help connecting to a remote database...i want my app to get data out of the database and update the database... ive tried this http://www.helloandroid.com/tutorials/connecting-mysql-database but i dont understand it.
请帮忙
推荐答案
最简单的连接移动方式(Android设备,iPhone,塞班,WP7,你的名字)设备到数据库是写一个基于HTTP的代理您数据库。
Easiest way to connect a Mobile (ANDROID, iPhone, Symbian, WP7, you name it) device to a Data Base is to write a HTTP based proxy for your database.
这是:
ANDROID -> HTTP -> APPLICATION SERVER -> DATABASE
然后周围的其他方式得到的结果:
And then the other way around to get results:
DATABASE -> APPLICATION SERVER -> HTTP -> ANDROID
在这种情况下,您将编写一个基于HTTP的应用程序在你喜欢的语言(PHP,Python和Perl中,爪哇,.NET),并在自己喜欢的应用程序服务器(Apache,Tomcat中,IIS)的部署,并在该应用程序您将发布网址你的Android应用程序将访问发送/检索数据到数据库。
In this scenario, you will write a HTTP based application in your favorite language (PHP, Python, Perl, Java, .NET) and deploy it in your favorite Application Server (Apache, Tomcat, IIS) and, in that application you will publish URLs your Android app will access to send/retrieve data to your database.
这篇关于连接到远程数据库...在线数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!