RE: pg_dump Error in Windows - Mailing list pgsql-admin

From
Subject RE: pg_dump Error in Windows
Date
Msg-id 2A91BEF8171A5349931391E0C721CC5326FAF20F@CPEMS-KPN301.KPNCNL.LOCAL
Whole thread Raw
In response to pg_dump Error in Windows  (<soumik.bhattacharjee@kpn.com>)
List pgsql-admin

Same error with pg_dumpall it does not accept the postgres default password

 

 

C:\Program Files\PostgreSQL\9.6\bin>pg_dumpall > postgres

Password:

pg_dumpall: could not connect to database "template1": FATAL:  password authentication failed for user " testusr"

 

 

From: Bhattacharjee, Soumik
Sent: Thursday, March 21, 2019 11:16 AM
To: pgsql-admin@lists.postgresql.org
Subject: pg_dump Error in Windows

 

Hello All,

 

When I am trying to take backup using pg_dump.exe , it’s asking for password, when I provide the default password of “postgres” it never accepts and throws below error-

 

pg_dump: [archiver (db)] connection to database "test_database" failed: FATAL:  Ident authentication failed for user "testusr"

 

Is there any changes I need to do in pg_hba.conf file?

 

Please suggest a solution.

 

Thanks

Soumik

 

 

pgsql-admin by date:

Previous
From:
Date:
Subject: pg_dump Error in Windows
Next
From: AYahorau@ibagroup.eu
Date:
Subject: A question regarding postgresql log messages,