Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Setup PostgreSQL with Rails

Kaiyu edited this page Feb 13, 2017 · 1 revision

Foreword: this is not a very good guide

How to resolve

Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

when doing rake db:create:all ? https://www.youtube.com/watch?v=QTCsjVGlPBM Basically - you need to do $ sudo service postgresql start

FINALLY SUCCEEDED!

  1. Make sure to create another user
  2. Config the database.yml with that user's name and password
  3. rake db:migrate to create schema.rb
  4. rake db:setup