【问题标题】:Rails with pg "rake db:create"带有 pg "rake db:create" 的 Rails
【发布时间】: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

【问题讨论】:

标签: ruby-on-rails ruby postgresql rake windows-subsystem-for-linux


【解决方案1】:

验证 PostgreSQL 本身是否已在您的计算机上启动并运行。

【讨论】:

    猜你喜欢
    • 2017-11-12
    • 1970-01-01
    • 2011-06-01
    • 1970-01-01
    • 2015-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多