Google Cloud SQL 无法连接到 Apache Superset

问题描述 投票:0回答:1

尝试将 Apache Superset 连接到 Google Cloud SQL (PostgreSQL) 时,出现此错误:

5432 The port is closed.

我也尝试通过 SQLAlchemy URI 字符串连接失败

postgresql://username:password@host:port/database
还有
PostgreSQL+psycopg2://username:password@host:port/database?sslmode=require

屈服
Error: Please check your connection details and database settings, and ensure that your database is accepting connections, then try connecting again.

我用的:

  • Superset:2.1.0(安装在Google虚拟机上)
  • PostgreSQL:15.2(谷歌云 SQL)

有人可以帮助理解和解决吗?

google-cloud-sql apache-superset postgres15
1个回答
2
投票

必须在云 SQL 中创建私有 IP 才能连接到 Superset。 文档链接

© www.soinside.com 2019 - 2024. All rights reserved.