connecting to a new database using postgresql sql shell

Solutions on MaxInterview for connecting to a new database using postgresql sql shell by the best coders in the world

showing results for - "connecting to a new database using postgresql sql shell"
Bryant
25 Oct 2017
1For Windows users using the SQL shell
2
3\c DB_NAME USER_NAME HOST PORT
4
5// to get the connection details such as your username, host and port simply use the "\conninfo" command
6
7eg : \c test1 john_doe localhost 5432