Change/reset postgresql user password on windows 7

前端 未结 5 1202
余生分开走
余生分开走 2021-02-01 17:43

Several days ago I install postgesql 9.2 version on my local computer. (OS windows 7)

Now I forgot my password and I can not login in pgAdmin.

How to change pos

5条回答
  •  日久生厌
    2021-02-01 18:33

    Edit pg_hba.conf to allow you to connect without a password. Then use ALTER USER to reset the password. Then change pg_hba.conf back again.

    For the documentation on pg_hba.conf, see here:

    http://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html

提交回复
热议问题