How to Connect to PostgreSQL Instance with Private IP by using GCP VM GCP SQL Cloud Tutorial 2022

Topic:  How to Connect to PostgreSQL Instance with Private IP by using GCP VM 


How to Connect to PostgreSQL Instance with Private IP by using GCP VM GCP SQL Cloud Tutorial 2022, in this video we are going to learn How to Connect to PostgreSQL Instance with Private IP by using GCP VM GCP SQL Cloud Tutorial 2022

Script:

Install psql client

sudo apt-get update
sudo apt-get install postgresql-client


psql "host=PrivateIP port=5432 sslmode=disable dbname=postgres user=postgres"

psql "host=172.21.160.12 port=5432 sslmode=disable dbname=postgres user=postgres"
  


Video Demo: How to Connect to PostgreSQL Instance with Private IP by using GCP VM


No comments:

Post a Comment