sql >> Base de Datos >  >> RDS >> PostgreSQL

¿Cómo restablezco la contraseña de usuario predeterminada de postgresql 9.2 (generalmente 'postgres') en mac os x 10.8.2?

Direcciones encontradas:

sudo su postgres

modificar /Library/PostgreSQL/9.2/data/pg_hba.conf

-local all all   md5
+local all all   trust

reiniciar postgres

/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/

Conéctese a postgres:

psql

Dentro de psql (\q para salir):

ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';

modificar pg_hba.conf atrás

+local all all   md5
-local all all   trust

reiniciar postgres

/Library/PostgreSQL/9.2/bin/pg_ctl restart -D /Library/PostgreSQL/9.2/data/