PostgreSQL Connecting to a Database: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * PostgreSQL Operations =Connect= {{Internal|PostgreSQL_Concepts#Database|Database}} ==Connect to the Default Database== psql -h localhost -U admin ==Con...")
 
Line 5: Line 5:
=Connect=
=Connect=


{{Internal|PostgreSQL_Concepts#Database|Database}}
Connect to a [[PostgreSQL_Concepts#Database|database]].


==Connect to the Default Database==
==Connect to the Default Database==

Revision as of 23:15, 14 November 2018

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>