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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)