小编Dra*_*ace的帖子

pg_dump: [archiver (db)] 与数据库的连接失败:致命:用户“postgres”的对等身份验证失败

我正在尝试将我的 Postgres 数据库备份到另一台服务器,但我一直被拒绝访问。

我的 pg_hba.conf 文件如下所示:

# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can access the database using some other method.
# Noninteractive access to all databases is required during automatic
# maintenance (custom daily cronjobs, replication, and similar tasks).
#
# Database administrative login by Unix domain socket
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain …
Run Code Online (Sandbox Code Playgroud)

postgresql psql database-backup

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

database-backup ×1

postgresql ×1

psql ×1