[英]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:
所以基本上设置是:
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.