Forgot Admin Password on Postgres (Windows Installation), can't reset

前端 未结 3 712
野的像风
野的像风 2021-01-02 07:06

I have a Windows PostgreSQL installation.

According to some posts, there is no default password set for the \'postgres\' user yet I can\'t connect using an empty pa

3条回答
  •  甜味超标
    2021-01-02 07:47

    I was having the same issue and I couldn't use Postgres in the CLI on my windows machine but I managed to trace down where the passwords were stored via

    %APPDATA%\PostgreSQL\pgpass.conf 
    

    NB: You must have selected store password option when creating a server or database in the pgAdmin.

    I hope this helps. Thanks.

提交回复
热议问题