Skip to content

Instantly share code, notes, and snippets.

@nivir
Created December 6, 2016 20:48
Show Gist options
  • Save nivir/3a5ee5afeaf223e66049072fb1cf776c to your computer and use it in GitHub Desktop.
Save nivir/3a5ee5afeaf223e66049072fb1cf776c to your computer and use it in GitHub Desktop.
django.db.utils.OperationalError: 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"?
@nivir
Copy link
Author

nivir commented Dec 6, 2016

Solution:

$ mkdir /var/pgsql_socket/ 
$ ln -s /tmp/.s.PGSQL.5432 /var/pgsql_socket/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment