Created
November 24, 2016 21:44
-
-
Save matthewlehner/6994aa7cf55260df11d046443eed0d8d to your computer and use it in GitHub Desktop.
Upgrades Homebrew Postgres installation from 9.5 to 9.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew services stop postgresql | |
initdb /usr/local/var/postgres9.6 -E utf8 | |
pg_upgrade -d /usr/local/var/postgres -D /usr/local/var/postgres9.6 -b /usr/local/Cellar/postgresql/9.5.5/bin -B /usr/local/Cellar/postgresql/9.6.1/bin -v | |
mv /usr/local/var/postgres /usr/local/var/postgres9.5 | |
mv /usr/local/var/postgres9.6 /usr/local/var/postgres | |
brew services start postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If it stops working after crash: https://coderwall.com/p/zf-fww/postgres-on-osx-with-homebrew-not-running-after-osx-crash