如何将 Google Data Studio 连接到 Google Cloud SQL

How to connect Google Data Studio to Google Cloud SQL

我有一个 Google 云 SQL 数据库,我可以用我的 SQL 客户端连接到它。但是,我无法将 Google Data Studio 连接到具有 Cloud SQL 数据源的 Google Cloud SQL 数据库。我有来自 Google Cloud SQL 的 IP 地址和凭据。

我的猜测是 Google Data Studio 无法连接到 Google Cloud SQL 因为我需要添加一个 IP 地址以允许流量进入 Google Cloud SQL 但 Google Data Studio 没有或没有公布 IP 范围。

是否有人使用 Google Data Studio 中的 Cloud SQL 数据源成功连接到 Google Cloud SQL?

需要将以下范围列入白名单,Data Studio 才能正常工作: https://developers.google.com/apps-script/guides/jdbc

自 2017 年 8 月以来,Google Data Studio 本机连接到 Google 云 SQL 数据库:

The current version of the connector no longer requires whitelisting, and it provides encryption; however, to use these features, you must create a new data source using the Google Cloud SQL connector.

有关如何创建连接器的详细说明,请参阅帮助中的 Google Cloud SQL connector