How to build jdbc url to Google SQL instance?

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}

Enter fullscreen mode Exit fullscreen mode

You can find drivers at github to setup connection

Hope it helps!

原文链接:How to build jdbc url to Google SQL instance?

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容