Published
- 1 min read
psql: error: 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"?
The solution for this is noted below
psql: error: 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”?
Solution
Try running to verify its working:
sudo service postgresql start
Try other methods by searching on the site. That is if this doesn’t work