[英]Local Postgres database to Google Cloud PostgreSQL Github
I would like to build a Google Cloud PostgreSQL database using the instructions here我想使用此处的说明构建一个 Google Cloud PostgreSQL 数据库
I was able to successfully create the Postgres databases with appropriate tables and views locally.我能够在本地成功创建具有适当表和视图的 Postgres 数据库。
What do I need to do in order to get the data on Google Cloud PostgreSQL?我需要做什么才能获取 Google Cloud PostgreSQL 上的数据? My goal is to have remote access to this data.我的目标是远程访问这些数据。
You could connect to Cloud SQL from a local test environment using cloud sql proxy.您可以使用云 sql 代理从本地测试环境连接到云 SQL。 See quickstart-proxy-test .请参阅快速启动代理测试。
The workflow is:工作流程是:
Your Application(Running Locally) => cloud sql proxy (Running locally) => GCP remote Cloud SQL service您的应用程序(本地运行)=> 云 sql 代理(本地运行)=> GCP 远程云 SQL 服务
You have 2 options, The first one is use the Cloud SQL proxy as is described here .您有 2 个选项,第一个是使用Cloud SQL 代理,如此处所述。 As the shared links say, the Cloud SQL Proxy provides secure access to your instances without the need for Authorized.networks or for configuring SSL.正如共享链接所说,云 SQL 代理提供对您的实例的安全访问,无需 Authorized.networks 或配置 SSL。
On the other hand, the second option is only to configure access to your instance under Authorized.networks using or not SSL. The complete steps are listed here另一方面,第二个选项仅使用或不使用 SSL 在 Authorized.networks 下配置对您的实例的访问。完整的步骤在此处列出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.