Trovate indicazioni:
sudo su postgres
modificare /Library/PostgreSQL/9.2/data/pg_hba.conf
-local all all md5
+local all all trust
riavvia Postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/
Collegati a postgres:
psql
All'interno di psql (\q
uscire):
ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
modifica pg_hba.conf indietro
+local all all md5
-local all all trust
riavvia Postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/