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
  • 515
  • 1
  • 8
  • 23

1 Answers1

1

You local PostgreSQL server is not running.

Marc Balmer
  • 1,782
  • 1
  • 11
  • 18