I am new to postgres and facing difficulty in connecting to DB after server reboot. I have created a database pgdb under an OS user test. After Server restarted, I restarted pgsql by issuing the command
service postgresql-9.6 start
Starting postgresql-9.6 service: [ OK ]
If i just issue psql, I am taken to psql prompt but the data path here is different than what I have set previously. When I try to connect to pgdb as postgres user, I get the error:
psql: FATAL: database "pgdb" does not exist
When I try to connect as Test user:
psql -d pgdb
psql: FATAL: role "test" does not exist
Please suggest
test
. – a_horse_with_no_name