我正试图推送到Heroku上,并且像许多人一样,我得到了错误用户的密码提示,所以我去做了
SET PGUSER=[pg_username]
SET PGPASSWORD=[pg_password]
我要输入命令:
heroku pg:push mylocaldb DATABASE_URL --app my-app
它更改了用户名,但密码不起作用,我收到了错误消息:
connection to database "mylocaldb" failed: FATAL: password authentication failed for user "Janet"
如何更改/查找密码?
我的pg_hba文件看起来像这样:
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all [redacted] trust
# IPv6 local connections:
host all all [redacted] md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all [redacted] trust
host replication all [redacted] trust