PostgreSQL Connecting to a Database
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>