【问题标题】:How to downgrade Postgres from 9.6 to 9.5如何将 Postgres 从 9.6 降级到 9.5
【发布时间】:2016-12-29 07:07:23
【问题描述】:

我删除了我的 9.6 postgres.app(通过将应用程序拖到垃圾箱来删除它)并下载了 postgres.app。

然而,当我这样做时

locate initdb 

它仍然指向错误的位置:

/Applications/Postgres.app/Contents/Versions/9.6/bin/initdb
/Applications/Postgres.app/Contents/Versions/9.6/share/doc/postgresql/html/app-initdb.html
/Applications/Postgres.app/Contents/Versions/9.6/share/man/man1/initdb.1

解决这个问题最有效的方法是什么?

【问题讨论】:

  • 添加您如何“删除 9.6”
  • 由于定位数据库仅每天更新一次,您需要在定位指向新文件之前执行updatedb
  • @e4c5 我通过将 Postgres.app 下载到我的 Mac 来安装 Posgres。看来你的建议只适合linux?
  • updatedb 与 postgres 无关。它更新locate使用的文件位置数据库
  • @e4c5 明白了!非常感谢!

标签: django database postgresql


【解决方案1】:

根据 e4c5 的建议,我可以通过在我的 OSX 环境中执行以下操作来更新路径:

sudo /usr/libexec/locate.updatedb

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-04-27
    • 2023-02-07
    • 1970-01-01
    • 2016-12-20
    • 1970-01-01
    • 2019-01-16
    • 1970-01-01
    相关资源
    最近更新 更多