PostgreSQL Connecting to a Database

From NovaOrdis Knowledge Base
Revision as of 23:13, 14 November 2018 by Ovidiu (talk | contribs) (Created page with "=Internal= * PostgreSQL Operations =Connect= {{Internal|PostgreSQL_Concepts#Database|Database}} ==Connect to the Default Database== psql -h localhost -U admin ==Con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Connect

Database

Connect to the Default Database

psql -h localhost -U admin

Connect as a Specific User to a Database

psql -U <username> <dbname>