postgresql - Completely remove postgres after brew uninstall OSX
问题描述
I would like to know how to completely remove PostgreSQL on macOS Sierra (10.13.6). I've used this command line:
brew uninstall postgres
But when I reinstall with brew install postgres
I have the old config & content. I would like to make fresh install.
解决方案
完全重新安装 postgresql 最初运行
brew doctor
和brew update
现在通过运行卸载 postgresql
brew uninstall postgresql
rm -rf /usr/local/var/postgres
rm -rf .psql_history .psqlrc .psql.local .pgpass .psqlrc.local
现在重新安装 postgresql 不会带回以前的配置和内容
推荐阅读
- linux-kernel - dev_alloc_skb 返回 null
- flutter - 从外部状态范围强制 navDrawer 状态更新
- sharedpreferences - AndroidX Preferences 不会自动从 SharedPreferences 文件中加载保存的值
- sql - 需要在 SQL 中将多行中的列值组合成单行
- javascript - csrf 令牌正在改变不应该改变的地方
- visual-studio-code - 当在 Vs 代码中运行代码时,这总是出现在我的谷歌控制台上
- windows - 在条码扫描事件窗口 10 上触发 Powershell 程序
- java - 在firestore中使用多个字段的查询
- python - 如何在 python 中从十六进制数据中绘制波形
- arrays - 在 C 中输出输入数组