Rails 与 pg "rake db:create"

Rails with pg "rake db:create"

我正在使用 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: 无法连接到服务器:没有那个文件或目录

验证 PostgreSQL 本身已启动并且 运行 在您的机器上。