I'm trying to make it so that local connections to the database don't require a login. So I added the line local all all trust
to the pg_hba.conf file, but then when I load pgAdmin and try to connect to the server it just says FATAL: could not load pg_hba.conf
. What am I doing wrong?
Postgresql – What am I doing wrong with pg_hba.conf
access-controlpg-hba.confpostgresql
Related Question
- Postgresql – Correct pg_hba.conf to allow script to run locally with a specific db-user
- Postgresql – a local replication entry doesn’t work
- PostgreSQL – FATAL: No pg_hba.conf Entry for Host
- Postgresql – SQLAlchethe connection error with Postgres
- Postgresql – pgadmin / postgresql – no pg_hba.conf entry for host
- pg_hba.conf Entry Query – PostgreSQL Authentication and Access Control
- PostgreSQL – Authentication Fails: Log Refers to Non-Existent Line in pg_hba.conf
- PostgreSQL Error – Understanding FATAL: No pg_hba.conf Entry
Best Answer
There is likely an invalid entry in pg_hba.conf file. Reload it and then check the PostgreSQL server log for any pg_hba.conf error: