将 IPv6 添加到 Google 云 SQL 白名单/授权

Add IPv6 To Google Cloud SQL Whitelist / Authorization

如何为 Google 云 SQL 的 authorized/whitelisted 网络添加 IPv6?

Click to see Screenshot of error

您使用的 Cloud SQL 实例是第 1 代还是第 2 代?

二代云SQL实例不支持IPv6,官方文档中说可以查看here


编辑:

Google 问题跟踪器 上有一项现有功能请求,要求添加 CloudSQL v2 实例支持白名单 IPv6。您可以检查请求的状态 by following this link。您可以使用左上角的“星标”来获取请求状态的更新。

As a workaround, what you can do is to configure authentication based on a client certificate and connect using IPv4. You can use a web service like config.me to get your IPv4 address by running this command: $ curl --ipv4 ifconfig.me