當我運行此命令「軌DB:設置」 on Rails應用程序我得到這個錯誤信息ROR無法與PostgreSQL數據庫進行身份驗證
FATAL:身份認證失敗,用戶「rails_dev」 無法創建數據庫爲{「adapter」=>「postgresql」,「encoding」=>「unicode」,「pool」=> 5,「database」=>「myapp_test」,「username」=>「rails_dev」,「password」 >「aqwe123」,「host」=>「localhost」,「port」=> 5432} rails中止! PG :: ConnectionBad:FATAL:用戶「rails_dev」的標識認證失敗 /home/whitehat/.rvm/gems/ruby-2.4.0/gems/pg-0.21.0/lib/pg.rb:56:in
initialize' /home/whitehat/.rvm/gems/ruby-2.4.0/gems/pg-0.21.0/lib/pg.rb:56:in
新」 /home/whitehat/.rvm/gems/ruby-2.4.0/gems/pg-0.21.0/lib/pg.rb:56:in`連接
你可以在這裏粘貼你的database.yml嗎? –