简体   繁体   English

从 WaveMaker Online 连接到 Google Cloud SQL

[英]Connecting to Google Cloud SQL from WaveMaker Online

Has anyone had any success connecting to Google Cloud SQL from Wavemaker Online?有没有人成功地从 Wavemaker Online 连接到 Google Cloud SQL? I've had it confirmed through the chat that this is possible but the documentation linked didn't mention it directly.我已经通过聊天确认这是可能的,但链接的文档没有直接提到它。

When I try to test connection I get the error message:当我尝试测试连接时,我收到错误消息:

Error in connecting to database.连接数据库时出错。 : "Connection timed out",please check server logs for more information :“连接超时”,请查看服务器日志以获取更多信息

To connect I have done the following:要连接,我已完成以下操作:

  • Import > Connect to Database导入 > 连接到数据库
  • Select an external database > Other选择外部数据库 > 其他
  • Import Driver > mysql-connector-java-5.1.41-bin.jar导入驱动> mysql-connector-java-5.1.41-bin.jar
  • Database Info:数据库信息:
    • User Name: root用户名:root
    • Password: {root password}密码:{root 密码}
    • Database Name: {database name}数据库名称:{数据库名称}
    • Schema Filter: {left blank}架构过滤器:{留空}
  • Advanced Settings:高级设置:
    • Service Name: CloudSql服务名称:CloudSql
    • Port: 3306端口:3306
    • Connection URL: jdbc:mysql://{IPv4 address}连接网址:jdbc:mysql://{IPv4 地址}
    • Java Package: {Default} Java 包:{默认}
    • Driver Class: com.mysql.jdbc.Driver驱动类:com.mysql.jdbc.Driver
    • Dialect: MySql方言:MySql

Is there something I need to do on the Cloud SQL end?我需要在 Cloud SQL 端做些什么吗? Are there some specific IP addresses to add to the Authorised Networks maybe?是否有一些特定的 IP 地址可以添加到授权网络中? Any help would be greatly appreciated.任何帮助将不胜感激。

您需要从wavemakeronline(我们不知道)向谷歌云提供ip以授权访问或连接..所以wm支持可以向您发送ip有点复杂

此外,您可以添加 0.0.0.0/0 作为 IP,它允许任何 IP 连接您的数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM