問題描述
我只是想問我們是否可以從 Google App Engine 訪問外部 MySQL 服務(wù)器...
I just wanted to ask if we can access an external MySQL server from Google App Engine...
推薦答案
與其他主機通信的唯一方式是使用 UrlFetch 僅提供 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 服務(wù)器數(shù)據(jù)庫,您應(yīng)該考慮通過 Web API(例如 RESTful、Soap Web 服務(wù))公開它.這樣,您的數(shù)據(jù)也可以通過 UrlFetch 獲得.
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.
這篇關(guān)于App Engine 和 MySQL的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!