PostgreSQL 18 · Connecting
Connect to a database
Open psql against a specific host, port, user and database.
psql -h localhost -p 5432 -U postgres -d mydb
Official PostgreSQL 18 documentation
PostgreSQL 18 · Connecting
Open psql against a specific host, port, user and database.
psql -h localhost -p 5432 -U postgres -d mydb
Official PostgreSQL 18 documentation
Was this page helpful?