sql - 在 Idea Intellij 上,如何连接到 Google Cloud SQL

标签 sql google-app-engine intellij-idea google-cloud-sql

我尝试使用 Intellij 开发带有 Google Cloud SQL 的 Google App Engine 应用程序。 如何在开发启动中配置 Cloud Sql 访问?

我在 VM 选项中添加了这个:

-Drdbms.server=hosted -Drdbms.hosted.instance=my-sql-project-id:test
-Drdbms.database=database -Drdbms.driver=com.google.cloud.sql.jdbc.Driver

但是 Google Sql 必须通过 oauth2 token 连接到服务器。

使用 Eclipse Google 插件,插件连接到数据库并自动配置连接。

谢谢,

最佳答案

目前推荐的从 dev_appserver 连接到 Cloud SQL 的方法是使用外部 IP 连接。

引用:https://cloud.google.com/sql/docs/access-control#appaccess

关于sql - 在 Idea Intellij 上,如何连接到 Google Cloud SQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27313710/

相关文章:

c# - SQL Server 存储过程结果返回

google-app-engine - 谷歌应用引擎部署自定义虚拟机应用程序需要很长时间才能部署

google-app-engine - 获取没有 www 的 appengine 网站

java - 无法将新生成的 Play Framework 项目导入 IntelliJ IDEA 15

mysql - SQL更新查询中的函数

当关键字用双引号引起来时,MYSQL REGEXP 不起作用

javascript - 如何查询javascript对象

java - 应用引擎 : call endpoints of another module on the same server

java - 无法使用 gradle 解决 IntelliJ Idea 中的 : com. google.android.gms:play-services

maven - 如何解决警告 Unrecognized tag : 'snapshotPolicy' ?