0

我通过这个链接安装了 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”是我设置的密码。

这是它运行的图片

任何想法我做错了什么?

4

1 回答 1

2

好吧,有些事情并没有完全加起来。错误消息指的是用户“tamer”,但该database.yml文件具有“postgres”用户。你确定这是正在使用的 database.yml 文件吗?当您尝试使用任一用户使用 GUI 工具登录时会发生什么?

于 2012-02-10T21:13:54.107 回答