pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed fo
Posted 牛顿的小脑
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed fo相关的知识,希望对你有一定的参考价值。
"Peer authentication" means that it‘s comparing your database username against your Linux username. It should work if you‘re logged in as postgres
. You probably don‘t want to hit that md5
rule in pg_hba
, as the postgres
database user generally doesn‘t have a password. –
The Problem you have is, that if u dont define the Host, your system will decide.
explicit add "-h localhost", this will fix it
以上是关于pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed fo的主要内容,如果未能解决你的问题,请参考以下文章
使用pg_dump导出postgres db不起作用,数据库“db_name”不存在