Joined January 2018
·

blitz69

This happens when postgres server is not running.
Steps to properly install Postgres via Homebrew on MAC :

  1. brew install postgres

  2. initdb /Users/<username>/db -E utf8
    [This initializes postgres to use the given directory as the database directory. Normally it is not adviced to use the user directory for database storage. Edit sudoers file to add initdb and similar commands and then run initdb on /usr/local/var/postgres]

  3. pg_ctl -D /Users/<username>/db -l logfile start
    [After getting success with step 2 it will prompt to run step 3. This command manually starts the server.]

Achievements
1 Karma
0 Total ProTip Views