【发布时间】:2013-02-27 15:22:25
【问题描述】:
每次我尝试在我的 mac 10.8 上运行 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"?
根据this post 的问题,这是一个 PATH 问题。
我尝试通过打开我的 .profile 并添加以下行来编辑我的路径:export PATH=/usr/local/bin:$PATH
但是,当我执行which psql 时,它仍然显示/usr/bin/psql。
为什么它没有显示我想要的正确路径:/usr/local/bin/psql?
【问题讨论】: