Mat*_*sse 4 postgresql macos homebrew
我想知道如何在 macOS Sierra (10.13.6) 上完全删除 PostgreSQL。我用过这个命令行:
brew uninstall postgres
Run Code Online (Sandbox Code Playgroud)
但是当我重新安装时,brew install postgres我有旧的配置和内容。我想重新安装。
完全重新安装 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
Run Code Online (Sandbox Code Playgroud)
现在重新安装 postgresql 不会恢复以前的配置和内容
| 归档时间: |
|
| 查看次数: |
6106 次 |
| 最近记录: |