【发布时间】:2020-05-08 04:11:31
【问题描述】:
我将 Windows bash 用于带有 Postgre-sql 的 Rails 项目。它给了我以下错误。
**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"?**
无法创建“myrubyblog”数据库。请检查您的配置。 耙中止! ActiveRecord::NoDatabaseError: could not connect to server: No such file or directory
【问题讨论】:
-
psql 正在运行吗?我对 Windows 不太了解,但不妨试试这个问题:stackoverflow.com/a/46582472/12921091
标签: ruby-on-rails ruby postgresql rake windows-subsystem-for-linux