码迷,mamicode.com
首页 > 数据库 > 详细

pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed for user “postgres”

时间:2017-07-24 01:20:56      阅读:763      评论:0      收藏:0      [点我收藏+]

标签:hba   md5   hat   linu   failed   round   arch   ica   decide   

"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 for user “postgres”

标签:hba   md5   hat   linu   failed   round   arch   ica   decide   

原文地址:http://www.cnblogs.com/oxspirt/p/7226739.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!