我有一个问题,当我尝试以postgres登录时,忘记了postgres shell的密码。我在网上看了看,发现有几种不同的方法,但都不起作用。我已经处理了pg_hba.conf文件,但即使做了这样的更改,它也不起作用。下面是我的pg_hba.conf文件的样子。In that case you will also need to make PostgreSQL
# listen on a non-local interface via the listen_addres
我刚把postgresql安装在带有brew install postgresql的Macbook上。然后我尝试psql,但它需要密码,然后显示psql: FATAL: password authentication failed for user "<myname>"。我没有设置任何东西,输入我的mac密码也没有任何作用。我现在该怎么做?