【问题标题】:could not connect to server in postgresql [duplicate]无法连接到 postgresql 中的服务器 [重复]
【发布时间】:2018-11-07 18:27:07
【问题描述】:

我正在尝试通过 ubuntu 中的命令行连接到 postgresql,但它显示以下错误:-

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"?

对于这个错误,我已经尝试了很多谷歌的解决方案,但都没有成功。谁能帮我解决这个问题?

【问题讨论】:

标签: postgresql command-line ubuntu-16.04 postgresql-9.5


【解决方案1】:

您的本地 PostgreSQL 服务器没有运行。

【讨论】:

  • 另外,这不是一个编程问题。可能有更好的地方可以寻求帮助。
猜你喜欢
  • 2020-01-24
  • 1970-01-01
  • 2019-10-08
  • 2017-08-02
  • 2017-03-03
  • 2012-10-10
  • 2015-03-08
  • 1970-01-01
  • 2011-12-29
相关资源
最近更新 更多