Подключиться к базе данных PostgresQl/PG
#psql -h <host> -p <port> -d <db> -U <user>
psql -h localhost -p 5432 -d <db> -U <user>
Lino Ngando
#psql -h <host> -p <port> -d <db> -U <user>
psql -h localhost -p 5432 -d <db> -U <user>
psql -d geo -h 192.168.1.12 -p 5432 -U supervisor
// geo is a database and supervisor is a user
// Once on postgres you can change the database by typing
\c postgres
bash-4.2$ psql -h <hostname or ip address> -p <port number of remote machine> -d <database name which you want to connect> -U <username of the database server>