Cardano-db-sync fails

While setting up the cardano-db-sync library using cardano-db-sync/ at master · input-output-hk/cardano-db-sync · GitHub this site I stuck at command PGPASSFILE=config/pgpass-mainnet scripts/ --createdb with error psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "cexplorer" does not exist Can anyone help me?

It seems that you Postgresql server is not running.

Yeah, there was no cexplorer db but after that, the script has created automatically.