I’m using Fedora 30 and edited the pg_hba.conf file to bo:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 md5
host replication all ::1/128 ident
After that I tried to restart the postgres service and run psql -h localhost -U postgres but I’m still stuck will authentication failed.
Am I missing something?


















