PostgresSQL SETPGPASSWORD未设置密码

时间:2019-04-26 18:36:07

标签: windows postgresql heroku

我正试图推送到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

0 个答案:

没有答案