简体   繁体   English

谷歌云 SQL - PostgreSQL 来自第三方的 QGIS 数据库连接

[英]Google Cloud SQL - PostgreSQL database connection from QGIS for third parties

I have a Google Cloud SQL PostgreSQL database in which I can connect by using SSL and by entering my IP address in allowed connection settings.我有一个谷歌云 SQL PostgreSQL 数据库,我可以在其中使用 SSL 并在允许的设置中输入我的 ZA12A3079E14CEDB24E 连接地址。 However, I do not want to list all the IP addresses that is going to connect to this database (because I do not know all the IP addresses).但是,我不想列出所有要连接到该数据库的 IP 地址(因为我不知道所有 IP 地址)。 I have around 15 people which I want them to login to my database using QGIS and they should be able to change the data as this is a research.我有大约 15 个人,我希望他们使用 QGIS 登录到我的数据库,并且他们应该能够更改数据,因为这是一项研究。 Security is not a big issue as this database will be online for a very short period of time.安全性不是一个大问题,因为该数据库将在很短的时间内在线。 What connection method can you suggest?你能建议什么连接方法? The users are not very proficient so I need to setup everything.用户不是很熟练,所以我需要设置一切。

I hope you're doing fine.我希望你一切都好。

I would like to suggest to set the connections with the Cloud SQL proxy as it will provide the security needed without using ssl or the need of authorize any network.我想建议设置与Cloud SQL 代理的连接,因为它可以在不使用 ssl 或授权任何网络的情况下提供所需的安全性。 so basically the set up is to:所以基本上设置是:

  1. Enable the API启用 API
  2. Install the proxy client on your local machine在本地机器上安装代理客户端
  3. Determine how you will authenticate the proxy确定您将如何验证代理
  4. If required by your authentication method, create a service account如果您的身份验证方法需要,请创建一个服务帐户

Also you can find the steps on "Connecting to Cloud SQL from external applications"您还可以找到“从外部应用程序连接到云 SQL”的步骤

Hope this works for you as I have never used it with QGIS but I believe that as you are using a proxy it won't be hard from there to use it with QGIS as if you connected to a local server.希望这对您有用,因为我从未将它与 QGIS 一起使用,但我相信当您使用代理时,从那里将它与 QGIS 一起使用并不难,就像您连接到本地服务器一样。

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

相关问题 SSL Yii连接到Postgresql Google云数据库 - SSL Yii connection to postgresql Google cloud database 连接网络错误写入谷歌云 postgresql 数据库 - Connection network error writing to google cloud postgresql database 如何为Google Cloud SQL Postgresql实例建立连接URL - Ho to build Connection URL for Google Cloud SQL Postgresql Instance 如何使用 Pulumi 将 PostgreSQL 架构部署到 Google Cloud SQL 数据库? - How to deploy PostgreSQL schema to Google Cloud SQL database using Pulumi? 使用 Terraform 为 Google Cloud SQL PostgreSQL 数据库创建架构 - Create schema for Google Cloud SQL PostgreSQL database using Terraform Google Cloud SQL 中的 PostgresQL TImezone - PostgresQL TImezone in Google Cloud SQL 如何通过 Google Cloud Functions 连接到 PostgreSQL(beam-nuggets)来部署 Google Cloud Dataflow - How to deploy Google Cloud Dataflow with connection to PostgreSQL (beam-nuggets) from Google Cloud Functions 如何增加 Google Cloud SQL Postgres 数据库的连接限制? - How to increase the connection limit for the Google Cloud SQL Postgres database? 将谷歌云函数连接到云 sql (postgreSQL) - connecting google cloud function to cloud sql (postgreSQL) 是否有任何工具可以将RDS PostgreSQL从AWS迁移到Google Cloud SQL? - Is there any tool to migrate RDS PostgreSQL from AWS to Google Cloud SQL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM