我通过这个链接安装了 PostgreSQL ,一切看起来都很好。我可以使用 GUI 界面,并且可以看到我的数据库,但是当我运行时rake db:migrate
出现以下错误:
$ rake db:migrate
(in /Users/tamer/Sites/sample)
rake aborted!
FATAL: password authentication failed for user "tamer"
(See full trace by running task with --trace)
这是我的 database.yml 文件:
development:
adapter: postgresql
database: test
encoding: unicode
host: localhost
user: postgres
password: mypass
timeout: 5000
其中“mypass”是我设置的密码。
这是它运行的图片
任何想法我做错了什么?