本文介紹了App Engine 和 MySQL的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我只是想問我們是否可以從 Google App Engine 訪問外部 MySQL 服務器...
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 服務器數據庫,您應該考慮通過 Web API(例如 RESTful、Soap Web 服務)公開它.這樣,您的數據也可以通過 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.
這篇關于App Engine 和 MySQL的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!