在Windows 7上更改/重置Postgresql用户密码 [英] Change/reset postgresql user password on windows 7

查看:330
本文介绍了在Windows 7上更改/重置Postgresql用户密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我在本地计算机上安装了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆