在Windows 7上更改/重置Postgresql用户密码 [英] Change/reset postgresql user password on windows 7
问题描述
几天前,我在本地计算机上安装了postgesql 9.2版本。 (OS Windows 7)
Several days ago I install postgesql 9.2 version on my local computer. (OS windows 7)
现在我忘记了密码,无法登录pgAdmin。
Now I forgot my password and I can not login in pgAdmin.
操作方法更改Windows 7上的postgresql密码?
How to change postgresql password on windows 7?
推荐答案
编辑 pg_hba.conf
以使您无需密码即可连接。然后使用ALTER USER重置密码。然后再次更改pg_hba.conf。
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.
有关pg_hba.conf的文档,请参见此处:
For the documentation on pg_hba.conf, see here:
< a href = http://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html> http://www.postgresql.org/docs/devel/static/auth-pg -hba-conf.html
这篇关于在Windows 7上更改/重置Postgresql用户密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!