简体   繁体   English

本地 Postgres 数据库到谷歌云 PostgreSQL Github

[英]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.

相关问题 如何在 Google Cloud 上备份 Kubernetes 中的 Postgres 数据库? - How to backup a Postgres database in Kubernetes on Google Cloud? 如何认证本地POSTGRESQL服务器访问谷歌云存储 - How to authenticate local POSTGRESQL server to access Google Cloud Storage 如何增加 Google Cloud SQL Postgres 数据库的连接限制? - How to increase the connection limit for the Google Cloud SQL Postgres database? 如何将数据库(postgres)连接到谷歌云平台上的 Airflow composer? - How to Connect Database(postgres) to Airflow composer On Google Cloud Platform? 谷歌云,GitHub pipe 与谷歌云运行 - Google Cloud, GitHub pipe with Google Cloud Run 以编程方式将 GitHub 存储库连接到 Google Cloud 项目 - Programmatically Connecting a GitHub repo to a Google Cloud Project Google Cloud Storage 到 Google Cloud SQL (Postgres) 运算符 Airflow(或 Composer) - Google Cloud Storage To Google Cloud SQL (Postgres) Operator in Airflow (or Composer) 无法将 PostgreSQL(pgAdmin 4) 连接到 Google Cloud Platform - Unable to connect PostgreSQL(pgAdmin 4) to the Google Cloud Platform 是否可以在 google postgres cloud sql 中支持 orafce - Is it possible to support orafce in google postgres cloud sql 在 Google Cloud Postgres 上启用逻辑复制 - Enable logical replication on Google Cloud Postgres
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM