Vejbeskrivelse fundet:
sudo su postgres
modificer /Library/PostgreSQL/9.2/data/pg_hba.conf
-local all all md5
+local all all trust
genstart postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/
Opret forbindelse til postgres:
psql
Inde i psql (\q
for at afslutte):
ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
modificer pg_hba.conf tilbage
+local all all md5
-local all all trust
genstart postgres
/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/