Answer the question
In order to leave comments, you need to log in
Why is it asking for a password and not letting me into postgres?
PostgeSQL 9.4, Ubuntu 15.10.
Edited pg_hba.conf file :
local all postgres trust
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
sudo service postgresql restart
sudo su - postgres
su - postgres
- similarly does not work. Answer the question
In order to leave comments, you need to log in
Because you didn't even read what it says.
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
Тут вы поставили md5 от localhosta IPv6
# "local" is for Unix domain socket connections only
local all all password
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question