@michalmuskala and @OvermindDL1: thanks, how to change it to listen on port? I saw port configuration in postgresql.conf, but uncommenting it not and restarting not works.
psql -h localhost -U postgres
psql: FATAL: Ident authentication failed for user “postgres”
Looks like unix sockets are turn on by default with localhost configuration, but this is required by ecto:
Note: this configuration now works:
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
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.