【发布时间】:2017-11-04 17:27:47
【问题描述】:
我在 Windows 7 上使用 Postgres 9.5。
我只有一个用户postgres,并且我为该用户定义了到期日期。
现在我在过期后尝试连接,但我不能,所以有人知道怎么做 从超级用户取消过期,所以我不必重新安装 Postgres。
我尝试编辑 pg_hba.conf 以允许 trust 为 postgres 但仍然是同样的问题。
【问题讨论】:
-
但我无法使用命令 psql -U postgres 连接
-
阅读接受的答案。
-
尝试对等身份验证 - 不要指定 postgres。只是
sudo su - postgres然后psql -
我用的是windows忘记说抱歉
标签: postgresql database-connection