Answer the question
In order to leave comments, you need to log in
Installing PostgreSQL. How to configure pg_hba.conf and postgresql.conf?
When I enter the command psql -U postgres
, I get the following output
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
local all postgres all
# 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 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres trust
#host replication postgres 127.0.0.1/32 trust
#host replication postgres ::1/128 trust
Answer the question
In order to leave comments, you need to log in
First of all, postgres does it work?
Secondly, remove or put in trust
There is no such type of authorization all
https://postgrespro.ru/docs/postgrespro/9.6/auth-p...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question