Created
March 12, 2017 16:14
-
-
Save anonymous/65db3d505d0629f5598ad784b3e7d3d9 to your computer and use it in GitHub Desktop.
Removing PostgreSQL completely from OSX / MacOS
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
How completely uninstall PostgreSQL 9.X on Mac OSX | |
If installed PostgreSQL with homebrew: | |
brew uninstall postgresql | |
If you used the EnterpriseDB installer , follow the following step. | |
Run the uninstaller on terminal window | |
sudo /Library/PostgreSQL/9.X/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh | |
If installed with Postgres Installer, do: | |
open /Library/PostgreSQL/9.X/uninstall-postgresql.app | |
Remove the PostgreSQL and data folders. The Wizard will notify you that these were not removed. | |
sudo rm -rf /Library/PostgreSQL | |
Remove the ini file: | |
sudo rm /etc/postgres-reg.ini | |
Remove the PostgreSQL user using System Preferences -> Users & Groups. | |
Unlock the settings panel by clicking on the padlock and entering your password. | |
Select the PostgreSQL user and click on the minus button. | |
Restore your shared memory settings: sudo rm /etc/sysctl.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment