Change/reset postgresql user password on windows 7

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

    Run your psql executable file and login into your database using your old password, use the following command to login:

     .\psql.exe -U postgres
    

    Then use

    ALTER USER  WITH PASSWORD <'new_password'>
    

    For more information refer this link : https://www.postgresql.org/docs/8.0/sql-alteruser.html

提交回复
热议问题