Question : psql connect to database
Answered by : sore-seahorse-th5gv72t6288
psql -d postgres -h [host] -p [port] -U [user]
Source : | Last Update : Fri, 08 Jul 22
Question : psql connect to another database
Answered by : determined-dotterel-itfawbycexr5
\c DBNAME
\connect DBNAME
Source : https://stackoverflow.com/questions/3949876/how-to-switch-databases-in-psql | Last Update : Tue, 19 Jan 21