Hittade vägbeskrivningar:
sudo su postgres
modifiera /Library/PostgreSQL/9.2/data/pg_hba.conf
-local all all md5
+local all all trust
starta om postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/
Anslut till postgres:
psql
Inuti psql (\q
att sluta):
ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
ändra pg_hba.conf tillbaka
+local all all md5
-local all all trust
starta om postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/