0

Peer authentication failed for user

I have created one user user1 and one database asociated with this user, but when i try to do the connection with the database the shell shows me the message below: OperationalError('(psycopg2.OperationalError) FATAL: Peer authentication failed for user "user1" My pg_hba.conf file: local all all trust host user1db user1 0.0.0.0/0 trust And the connection i used is: app.sql_connection = "postgresql://user1:[email protected]/user1db" Anyone knows how can i solve it?

4th Jun 2018, 7:53 PM
Juan Antonio
Juan Antonio - avatar
0 Answer