2017-07-27 49 views
0

我正在使用postgresql數據庫的rails網站上工作。我的config/database.yml看起來像這樣。
Postgresql db:create不起作用,因爲超級用戶的密碼認證失敗了?

 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 

我不太清楚我在做什麼錯,但我剛剛安裝的PostgreSQL我的計算機(Windows 10)上,並在安裝過程中就問:「請提供數據庫超級用戶(Postgres的)密碼」和那是當我輸入「mypassword」時。用戶名和密碼是什麼?我很困擾。

回答

相關問題