title: Cannot connect to Postgres server running through brew services
body: <p>I've been looking for a solution for this and could not find a working solution.</p>
  
  <p>I've installed postgres using brew (<code>brew install postgres</code>)  in my MacBook and I am currently running it using brew services (<code>brew services list</code>  displays postgres as a running service). However, when I try to run <code>psql</code> I get following error.</p>
  
  <blockquote>
    <p>psql: could not connect to server: No such file or directory  Is the
    server running locally and accepting  connections on Unix domain
    socket "/tmp/.s.PGSQL.5432"?</p>
  </blockquote>
  
  <p>Anyone has already solved similar problem?</p>