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