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

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...