0

I am trying to connect to postgresql through command line in ubuntu but it is showing following error:-

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"?

For this error, I have tried many solutions from google but didn't succeeded. Can anyone help me on this issue?

Gautam Bothra
  • 565
  • 1
  • 8
  • 23
  • 1
    See [here](https://stackoverflow.com/search?q=%5Bpostgresql%5D+could+not+connect+to+server%3A+No+such+file+or+directory) –  May 29 '18 at 07:34

1 Answers1

1

You local PostgreSQL server is not running.

Marc Balmer
  • 1,780
  • 1
  • 11
  • 18