如何连接到远程MySQL数据库没有WebServices的......? (ANDROID) [英] How to connect to a remote MySQL DB without webservices... ? (ANDROID)

查看:131
本文介绍了如何连接到远程MySQL数据库没有WebServices的......? (ANDROID)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以做到这一点?我只想让SELECT /插入到远程数据库时,我认为这必须是容易的,但我无法找到的方式。我只能找到人告诉我必须做出一个web服务或类似的东西,但那是另一个世界的我,我不能把Web服务在数据库主机...

can i do it? I just wanna make SELECT/INSERT into a remote database, i think it have to be easy but i can't find the way. I only find people that tell i have to make a webservice or something like that, but that is another world for me, and i can't put a webservice in the database host...

¿有不正常的方式做到这一点没有一个web服务?

¿there is not a normal way to do it without a webservice?

感谢

推荐答案

当然 - 你可以创建一个网页或两个服务器上,并通过该值作为查询字符串参数的页面。有网页抓取查询字符串参数并做出相应的SQL调用。这种方法往往比使用Web服务更不安全,所以你可能需要某种身份验证添加到请求。

Sure - you could create a web page or two on your server and pass the values as query string parameters to the pages. Have the web pages grab the query string parameters and make the appropriate SQL call. This approach tends to be more insecure than using web services, so you may want to add some sort of authentication to the requests.

这篇关于如何连接到远程MySQL数据库没有WebServices的......? (ANDROID)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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