Skip to content

Instantly share code, notes, and snippets.

@stephaniewilkinson
Last active December 1, 2016 18:35
Show Gist options
  • Save stephaniewilkinson/193831f29a69b2d622642ee9d1cd1158 to your computer and use it in GitHub Desktop.
Save stephaniewilkinson/193831f29a69b2d622642ee9d1cd1158 to your computer and use it in GitHub Desktop.
``
$ brew services start postgresql
Service `postgresql` already started, use `brew services restart postgresql` to restart.
$ rake
/Users/steph/.gem/ruby/2.2.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
$ brew services restart postgresql
Stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)
$ rake
/Users/steph/.gem/ruby/2.2.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment