我一直在寻找解决方案,并找不到工作解决方案。无法连接到通过brew服务运行的Postgres服务器
我已经在我的MacBook中使用brew(brew install postgres
)安装了postgres,我正在使用brew服务运行它(brew services list
将postgres显示为正在运行的服务)。但是,当我尝试运行psql
时,出现以下错误。
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
任何人都已经解决了类似的问题?
很好的总结和解释,谢谢你的分解。 – coreyward