App Engine和MySQL的 [英] App Engine and MySQL

查看:169
本文介绍了App Engine和MySQL的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想问,如果我们能够从谷歌应用程序引擎...

I just wanted to ask if we can access an external MySQL server from Google App Engine...

推荐答案

与其他主机进行通信的唯一方法是通过使用的网址抓取只提供HTTP和HTTPS请求。结果
所以,你不能这样做开箱。

The only way to communicate with other hosts is by using UrlFetch that only provides HTTP and HTTPS requests.
So, you can't do it out of the box.

无论如何,如果你确实需要访问外部的MySQL服务器数据库,您应该考虑通过Web API(例如REST风格的,SOAP网络服务),以揭露它。
这样,您的数据将可还可以通过网址抓取。

Anyway, if you really need to access an external MySQL server database, you should consider to expose it through a Web API (RESTful, Soap web-services for example). In this way your data would be available also via UrlFetch.

这篇关于App Engine和MySQL的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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