Answer the question
In order to leave comments, you need to log in
How to fix "psql: Could not connect to server"?
At some point, the bd stopped responding.
Server - Ubuntu 16.04
DB - PostgreSQL 10
Gives error
"psql: failed to connect to server: No such file or directory. Is
it really running locally and accepting
connections via Unix socket "/var/run/postgresql/.s.PGSQL.5432"?"
psql -U postgres -p 5432 -h localhost
psql
postgres -V
"Command 'postgres' not found"
sudo systemctl restart postgresql.service
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question