我忘记了我的postgres密码,所以我无法连接到数据库,我发现了这些步骤:
1. edit pg_hba.conf to allow trust authorization temporarily
2. Reload the config file (pg_ctl reload)
3. Connect and issue ALTER ROLE / PASSWORD to set the new password
4. edit pg_hba.conf again and restore the previous settings
5. Reload the config file again
我试图效仿,但我仍然坚持第一步。 我应该在pg_hba.conf中更改什么才能暂时允许信任授权。