使用专用网络从Google Compute引擎访问Google Cloud SQL [英] Accessing Google Cloud SQL from Google Compute Engine using private network
问题描述
是否可以使用专用网络从Google Compute Engine访问Google Cloud SQL?
is it possible to access Google Cloud SQL from Google Compute Engine using the private network?
Google云端SQL似乎可以看到Google Compute Engine实例的公网IP。
It appears that Google Cloud SQL sees the public network IP for the Google Compute Engine instance.
Web控制台不允许输入实例专用地址。
And, the web console doesn't allow entering the instance private address.
推荐答案
不可以通过以下方式访问Google Cloud SQL实例一个私人IP地址。
No it is not possible to access Google Cloud SQL instances via a private IP address.
这此页确认这一点,它表示注意:在配置授权IP地址时,您必须使用GCE实例的外部(公共)IP地址 到您的GCE实例的云端SQL实例。
This this page confirms this, it says Note: You must use the external (public) IP address of the GCE instance ...when configuring Authorized IP Addresses to your cloud sql instance from your GCE instance.
这篇关于使用专用网络从Google Compute引擎访问Google Cloud SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!