-
Abra
/etc/postgresql/9.5/main/pg_hba.conf
com acesso rootsudo nano /etc/postgresql/9.5/main/pg_hba.conf
-
Altere
peer
paramd5
nessas linhas.Antes de mudar
# "local" is for Unix domain socket connections only local all all peer # IPv4 local connections: host all all 127.0.0.1/32 peer # IPv6 local connections: host all all ::1/128 peer
Após sua alteração
# "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 md5
-
Salve o arquivo pressionando Ctrl - O . Saia do nano com Ctrl - X
-
Reinicie o postgresql usando
sudo service postgresql restart