How completely uninstall PostgreSQL 9.X on Mac OSX

本文涉及的产品
云原生数据库 PolarDB MySQL 版,Serverless 5000PCU 100GB
简介:

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced from stackoverflow:

If installed PostgreSQL with homebrew , enter 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.

  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










本文转自 h2appy  51CTO博客,原文链接:http://blog.51cto.com/h2appy/1860812,如需转载请自行联系原作者
相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
目录
相关文章
|
5月前
|
SQL Java Maven
Mac下安装DBeaver
Mac下安装DBeaver
224 0
Mac下安装DBeaver
|
关系型数据库 MySQL 数据安全/隐私保护
Mac 上如何安装Mysql
Mac 上如何安装Mysql
235 0
Mac 上如何安装Mysql
|
关系型数据库 MySQL 数据安全/隐私保护
Mac 上如何安装Mysql?
Mac 上如何安装Mysql?
142 0
Mac 上如何安装Mysql?
|
安全 关系型数据库 MySQL
Mac 使用 brew 安装 mysql
Mac 使用 brew 安装 mysql
Mac 使用 brew 安装 mysql
|
存储 NoSQL 数据可视化
Mac OSX 平台安装 MongoDB
Mac OSX 平台安装 MongoDB
113 0
Mac OSX 平台安装 MongoDB
|
安全 关系型数据库 MySQL
Mac 安装MySQL
Mac 安装MySQL
133 0
|
关系型数据库 MySQL 开发工具
Mac安装和卸载mysql5.7
Mac安装和卸载mysql5.7
448 0
|
安全 关系型数据库 MySQL
Mysql5.7.19的安装(mac版本)
Mysql5.7.19的安装(mac版本)
72 0
Mysql5.7.19的安装(mac版本)
|
关系型数据库 Python MySQL
Mac 安装 mysqlclient
 尝试在虚拟环境下通过 pip 安装: pip install mysqlclient 然后报错:OSError: mysql_config not found 找到官方文档 https://github.
5975 0
|
关系型数据库 MySQL
mac MySQL升级后mysqlclient安装失败
mac MySQL升级后mysqlclient安装失败