我升级到 OSX Catalina,在修复损坏的软件包的过程中,无意中posgresql从版本 11 升级到版本 12。当我尝试启动时,postgresql我在日志中看到以下内容:
2020-07-18 17:51:16.885 AEST [42394] FATAL: database files are incompatible with server
2020-07-18 17:51:16.885 AEST [42394] DETAIL: The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 12.3.
Run Code Online (Sandbox Code Playgroud)
如何删除版本 12,然后重新安装版本 11?我不确定我正在使用版本 11 的哪个次要版本。我更喜欢使用brew.
小智 6
你可以运行
brew postgresql-upgrade-database
Run Code Online (Sandbox Code Playgroud)
从保留所有数据的先前版本升级数据库。
信息来源:brew info postgres
如果你真的想降级的话
brew uninstall postgresql
brew install postgresql@11
Run Code Online (Sandbox Code Playgroud)
会那样做的。
| 归档时间: |
|
| 查看次数: |
27193 次 |
| 最近记录: |