相关疑难解决方法(0)

psql:无法连接到服务器:没有这样的文件或目录(Mac OS X)

重启我的Mac后,我遇到了可怕的Postgres错误:

psql: could not connect to server: No such file or directory
 Is the server running locally and accepting
 connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)

发生这种情况的原因是因为我的macbook完全因为一个无关的问题而冻结,我不得​​不使用电源按钮进行硬重启.重新启动后,由于此错误,我无法启动Postgres.

postgresql macos

213
推荐指数
12
解决办法
17万
查看次数

标签 统计

macos ×1

postgresql ×1