1

最初我想从我的系统中卸载 PSQL 并切换到 postgres 应用程序,版本 9.2。

密切关注指南,但在我的系统上激活 postgresql 仍然存在问题。

psql给了我

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

当我到

rm /usr/bin/psql

我明白了

override rwxr-xr-x root/wheel compressed for /usr/bin/psql? 

由于这超出了我的能力范围,而且我不知道它的作用,所以我问你们。

4

1 回答 1

2

中的文件/usr/bin是您的操作系统的一部分,并且在 Mac OS X 的众多 PostgreSQL 安装程序或软件包供应商中,我认为他们都没有建议删除/usr/bin/psql.

事实上,如果您想清除 Apple 提供的 PostgreSQL 客户端层,您还需要删除更多文件。而且,当您将该系统升级到10.8.X+1其他版本时,Apple 安装程序很可能会使用更新的版本再次将它们放回原处。

如果您在使用操作系统进行管理时处于未知领域,最好遵循postgres.app上建议的过程,这归结为更改程序的搜索路径,以便他们psql和其他工具(pg_dump, pg_restore,... ) 先来。

另外,相关答案:如何修复 pg_dump 版本不匹配错误?

于 2013-07-11T13:27:53.930 回答