Question : how to connect to remote postgres database from command line
Answered by : lucky-lyredragonbird
psql -h <IP_Address> -p <port_no> -d <database_name> -U <DB_username> -W
-W option will prompt for password
psql -h 192.168.1.50 -p 5432 -d testdb -U testuser -W
Source : https://stackoverflow.com/questions/6150738/cannot-connect-to-postgres-from-remote-host | Last Update : Fri, 02 Oct 20
Question : connect to remote postgres database
Answered by : akshay-kakade
{"tags":[{"tag":"textarea","content":"psql -h <remote_host> -p <remote_port> -U <username> -d <database_name>","code_language":"shell"}]}
Source : | Last Update : Tue, 07 Feb 23
Question : psql connect remote
Answered by : jonathan-birnbaum
psql -h <remote_host> -p <remote_port> -U <username> -d <database_name>
Source : https://stackoverflow.com/questions/32824388/postgresql-remotely-connecting-to-postgres-instance-using-psql-command | Last Update : Wed, 14 Dec 22
Question : how to connect to a remote postgresql database
Answered by : rajeev-punna
$ psql -h <host> -p <port> -U <username> <database>
Source : | Last Update : Mon, 26 Jul 21
Question : how to connect to remote postgres database from command line
Answered by : open-oyster-cdmnbzr7q3bt
How to connect to remore postgres database from command line
psql -h <IP_Address> -p <port_no> -d <database_name> -U <DB_username> -W
-W option will prompt for password
psql -h 192.168.1.50 -p 5432 -d testdb -U testuser -W
Source : | Last Update : Wed, 08 Sep 21