pg_ctl: no database directory specified and environment variable PGDATA unset

You need to specify where the database directory is installed to.

eg

pg_ctl restart -D [insert directory location here]

Failing that you will need to set the environment variable PGDATA. Something like

 set $PGDATA = [directory location here]

Leave a Comment