Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Steps to upgrade/install and run PostgreSQL 9.4.3 using Homebrew (Mac OS X)
  2.  
  3. (if you aren't using version 9.3.5_1, change line 6 with the correct version)
  4.  
  5. 1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
  6. 2. mv /usr/local/var/postgres /usr/local/var/postgres-9.3
  7. 3. brew update
  8. 4. brew upgrade postgresql
  9. 5. initdb /usr/local/var/postgres -E utf8
  10. 6. pg_upgrade -b /usr/local/Cellar/postgresql/9.3.5_1/bin -B /usr/local/Cellar/postgresql/9.4.3/bin -d /usr/local/var/postgres-9.3 -D /usr/local/var/postgres
  11. 7. cp /usr/local/Cellar/postgresql/9.4.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
  12. 8. pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement