【发布时间】: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