我丢失了 PostgreSQL 的密码。我已经尝试过用谷歌搜索一下,但是
local all all trust
解决方案对我不起作用。有谁知道如何以另一种方式恢复/重置此密码?谢谢!
编辑
这是我收到的错误:
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
我确实尝试过这里发布的解决方案我忘记了在 postgres 安装期间输入的密码