几天前,我在本地计算机上安装了 postgesql 9.2 版本。 (操作系统 Windows 7)
现在我忘记了密码,无法登录 pgAdmin。
如何在 Windows 7 上更改 postgresql 密码?
最佳答案
在 pg_hba.conf
文件中,(临时)将所有 METHOD
更改为 trust
。例如:
host all all ::1/128 trust
代替:
host all all ::1/128 md5
您可以通过在 psql 命令行中键入找到 pg_hba.conf
所在的位置:
SHOW hba_file;
关于postgresql - 在 Windows 7 上更改/重置 postgresql 用户密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18587710/