link
Connect to a PostgreSQL database using psql
psql -U username -d dbname
Connect as postgres user to mydb
psql -U postgres -d mydb