Google App Engine 标准环境到 Cloud-SQL 二代实例

Google App Engine standard environment to Cloud-SQL Second Generation instance

我考虑在 App Engine 中启动一个 PHP 项目,并希望在第二代中使用 Cloud 2SQL。

现在我很困惑这是否可能,因为我在 google 网站上找到了不同的信息。

https://cloud.google.com/appengine/docs/php/cloud-sql/

Note: Access to Google Cloud SQL Second Generation instances can be granted only for apps running in the flexible environment. Learn more.

https://cloud.google.com/sql/docs/dev-access

App Engine standard environment to a Second Generation instance You connect from Google App Engine standard environment) to Second Generation instances by completing the following steps:

现在可以吗?

可以在 App Engine 标准上使用 Cloud SQL v2。

查看 Terrance Ryan(GCP 开发者倡导者)关于此主题 [0] 的博客 post,更具体地说:

"If you are an App Engine customer and looked at v2 before, it did not support App Engine. However, that appears to have changed: you can now access Cloud SQL v2 from App Engine standard environment, or App Engine flexible environment."

[0] http://terrenceryan.com/blog/index.php/cloud-sql-v1-vs-v2/