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