How to connect Google Data Studio to Google Cloud SQL
Asked Answered
C

2

7

I have a Google Cloud SQL database that I can connect to with my SQL client. However, I have not been able to connect Google Data Studio to the Google Cloud SQL database with the Cloud SQL data source. I have the IP address and credentials from Google Cloud SQL.

My guess is that Google Data Studio cannot connect to Google Cloud SQL because I need to add an IP address to allow the traffic into Google Cloud SQL but Google Data Studio does not have or does not publicize an IP range.

Has anyone had success connecting to Google Cloud SQL using the Cloud SQL data source in Google Data Studio?

Chick answered 31/8, 2016 at 3:50 Comment(5)
Take a look at this article: support.google.com/360suite/datastudio/answer/…Okay
Did you have the chance to add the CIDR mentioned in the Help Center article provided by @Okay ?Barb
@Barb yes, doesn't workChick
Are you getting any error messages while trying to connect? Which connector are you using?Barb
To confirm, you added each of the listed IPs/Ports to your Cloud SQL access list ? If so, are you using First or Second generation Cloud SQL instance. Also is your IP IPv4 or IPv6? You may want to also consider making a new use specifically for this connection.Lipoid
G
3

Since August 2017, Google Data Studio connects natively to Google Cloud SQL databases:

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.

See Google Cloud SQL connector in help for detailed description on how to create a connector.

Gaze answered 14/2, 2018 at 11:41 Comment(1)
In case anyone else is wondering, this only works if you're using a MySQL Cloud SQL instance -- not with Postgres.Foremost
K
4

The following ranges need to be whitelisted for Data Studio to work: https://developers.google.com/apps-script/guides/jdbc

Kathaleenkatharevusa answered 31/8, 2016 at 6:33 Comment(1)
i have added these CIDR notation listings and I still do not have access.Chick
G
3

Since August 2017, Google Data Studio connects natively to Google Cloud SQL databases:

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.

See Google Cloud SQL connector in help for detailed description on how to create a connector.

Gaze answered 14/2, 2018 at 11:41 Comment(1)
In case anyone else is wondering, this only works if you're using a MySQL Cloud SQL instance -- not with Postgres.Foremost

© 2022 - 2024 — McMap. All rights reserved.