Answers for "django.db.utils.OperationalError: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?"

0

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

$ rm /usr/local/var/postgres/postmaster.pid
$ brew services restart postgresql

# Think to restart your terminal (cmd + q on macOS)
Posted by: Guest on December-20-2020

Code answers related to "django.db.utils.OperationalError: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language