【发布时间】:2019-01-27 23:25:01
【问题描述】:
我正在使用带有 ubuntu 18.04 发行版的 WSL,在 bash 中我点击了 sudo -u 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 "/var/run/postgresql/.s.PGSQL.5433"?
然后我尝试了其他 postgres 操作,例如:sudo -u createdb mydb
只是得到同样的错误。
请指教。
【问题讨论】:
-
嗨,你有想过这个吗?
标签: linux windows postgresql ubuntu windows-subsystem-for-linux