【问题标题】:Postgresql db:create doesn't work because password authentication failed for superuser?Postgresql db:create 不起作用,因为超级用户的密码验证失败?
【发布时间】:2017-07-27 21:59:20
【问题描述】:

我正在开发一个使用 postgresql 数据库的 Rails 网站。我的 config/database.yml 看起来像这样。

     default: &default
      adapter: postgresql
      pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
      timeout: 5000
      username: postgres
      password: mypassword
      host: localhost
     development:
      <<: *default
      database: my_db_development
     test:
      <<: *default
        database: my_db_test

     production:
       <<: *default
       database: my_db_production

我不太确定自己做错了什么,但我刚刚在我的计算机(Windows 10)上安装了 postgresql,在安装过程中它询问“请为数据库超级用户(postgres)提供密码”,那是我输入“我的密码”。用户名和密码中有什么?我很困惑。

【问题讨论】:

    标签: ruby-on-rails database postgresql


    【解决方案1】:

    我发现了关于Forgotten PostgreSQL Windows password的类似问题,希望对解决您的问题有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-16
      • 2018-04-21
      • 2016-11-20
      相关资源
      最近更新 更多