Problem scenario
You are trying to connect to a PostgreSQL database. Your database username and password are not working, but you think they should. You get the message: “postgresql.Driver Connection error: org.postgresql.util.PSQLException Fatal: Ident authentication failed for user”
What should you do?
Possible solution #1
Make sure the pg_hba.conf file is configured correctly.
Here is an example if you are trying to connect from your local machine and you do not need your Postgres instance extremely hardened:
# TYPE
…