psql.exe - password authentication failed in windows

后端 未结 3 1381
小蘑菇
小蘑菇 2021-02-05 07:57

I\'m a noob in PostgreSQL. I installed ver 9.2 on windows7. During installation it asked for password and i entered it. Now whenever i run d:\\tools\\PostgreSQL9.2\\bin\\psql.ex

3条回答
  •  逝去的感伤
    2021-02-05 08:52

    change "trust" instead of "md5" in the pg_hba.conf to connect to the database and change your password.

        --------------------configuration in pg_hba.conf---------------
        local   all         all                               trust  
        local   all         postgres                          trust          
        host    all         all         ::1/128               trust
    

提交回复
热议问题