I installed posgresql based on the ubuntu instructions. I registered the necessary parameters in the file just as in the instructions. Now when I try to connect via psql, everything is fine.
When I try to connect via pgadmin with a similar user, I get an error
FATAL: no pg_hba.conf entry for host "127.0.0.1", user "postgres", database "postgres", SSL on FATAL: no pg_hba.conf entry for host "127.0.0.1", user "postgres", database "postgres ", SSL off
Googled, it is advised to register in pg_hba.conf not a line as indicated in the instruction, but
local all postgres 127.0.0.1 md5 In this case, I can not connect from the console gives an error:
psql: could not connect to server: Нет такого файла или каталога Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? Tell me, how can I bring it up so that I can create my databases, labels and work with it on the server?