connect database created in terminal to pgadmin code example Example: access the postgres psql psql -h localhost -U username databasename