loading...

How to build jdbc url to Google SQL instance?

art_ptushkin profile image Artem Ptushkin ・1 min read

I find it pretty tricky and not transparent on how to build JDBC URL to Google SQL Database instance.

Postgresql example placeholder:

jdbc:postgresql:///{database_name}?socketFactory=com.google.cloud.sql.postgres.SocketFactory&cloudSqlInstance={connection_name}:{instance_id}

Alt Text

Alt Text

You can find drivers at github to setup connection

Hope it helps!

Discussion

markdown guide