title: Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”? in Odoo
body: <p>After some time the Postgres database stopped working of my live server. I'm working on this server from last 8 months. Now suddenly it's stopped working.</p>
  
  <p>when I try to enter the command, psql produces an error</p>
  
  <p>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"?</p>
  
  <p><a href="https://i.stack.imgur.com/jXeus.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I'm using odoo8.</p>