Skip to content

Instantly share code, notes, and snippets.

@MIsabelZM
Last active January 13, 2017 21:16
Show Gist options
  • Save MIsabelZM/6c7477156958e2027ca3 to your computer and use it in GitHub Desktop.
Save MIsabelZM/6c7477156958e2027ca3 to your computer and use it in GitHub Desktop.
Fix PG::ConnectionBad error

Error
could not connect to server: No such file or directory (PG::ConnectionBad) Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

Solution
Run this commands
$ gem uninstall pg
$ cd my-rails-app/
$ bundle install

More information here

https://postgresapp.com/
Using brew?
pg_ctl -D /usr/local/var/postgres start

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