微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

How completely uninstall PostgreSQL 9.X on Mac OSX

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced fromstackoverflow:

If installed Postgresql withhomebrew,enterbrew uninstall postgresql

If you used theEnterpriseDB 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.

  1. Unlock the settings panel by clicking on the padlock and entering your password.

  2. Select the Postgresql user and click on the minus button.

  3. Restore your shared memory settings:sudo rm /etc/sysctl.conf

原文地址:https://www.jb51.cc/postgresql/194337.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐