Change/reset postgresql user password on windows 7

前端 未结 5 1291
余生分开走
余生分开走 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:31

    In the pg_hba.conf file, change (temporarily) all METHOD with trust. EG :

    host    all             all             ::1/128                 trust
    

    instead of :

    host    all             all             ::1/128                 md5
    

    You can find where the pg_hba.conf is located by typing in a psql command line:

    SHOW hba_file;
    

提交回复
热议问题