Created
June 1, 2017 10:57
-
-
Save nicnilov/bc30fd01d9f58fd9dc7e64eb076495ea to your computer and use it in GitHub Desktop.
Brew revert Postgresql to 9.4 after auto upgrade and use existing data directory
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 search postgres | |
brew uninstall postgresql | |
brew install postgresql@9.4 | |
brew link postgresql@9.4 --force | |
pg_ctl -D /usr/local/var/postgres/ start # << specify the existing data directory and not the newly installed one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment