I'm trying to create db on PostgreSQL on linux machine. And I use following command to create the DB.
createdb mydbname;
This is throwing following error.
createdb: could not connect to database postgres: FATAL: database "postgres" does not exist
I'm new to PostgreSQL. Can you please guide me to go through this error? Simply I want to create a DB on psql.