3 examples for psql

{{ score }}
  # open a remote database
psql -h hostname dbname username
        
{{ score }}
  # connect to database at remote host on port with username 
psql -h  -p  -U  
        
{{ score }}
  # connect to a database that already exists
psql -d database_name