我忘记了
postgresql root用户的密码:postgres
所以我改变了pg_hba.conf以获得所有内容的信任方法(这是我的本地开发框)
- local all postgres trust
- local all all trust
- host all all 127.0.0.1/32 trust
- host all all ::1/128 trust
重新启动服务后,它仍然要求我输入密码.
- @omnipresent:~$su - postgres
- Password:
- su: Authentication failure
我所处理的混乱,此时我只想为postgresql创建一个新角色并使该用户成为管理员.
在这种情况下我该怎么做?