PostgreSQL Connecting to a Database

From NovaOrdis Knowledge Base
Revision as of 23:15, 14 November 2018 by Ovidiu (talk | contribs) (→‎Connect)
Jump to navigation Jump to search

Internal

Connect

Connect to a database.

Connect to the Default Database

psql -h localhost -U admin

Connect as a Specific User to a Database

psql -U <username> <dbname>