2013-04-23 51 views
1

我對ruby很新穎。我試圖運行BBYIDX跟着How to install BBYIDX on Windows? 如何使用rails項目配置Postgresql?

當我嘗試rake db:migrate它再現誤差

(in /home/virinchy/BBYIDX-2/BBYIDX-master) 
DEPRECATION WARNING: Rake tasks in vendor/plugins/acts_as_tsearch/tasks, vendor/plugins/acts_as_tsearch/tasks, vendor/plugins/delayed_job/tasks, vendor/plugins/nested_scenarios/tasks, vendor/plugins/rails-authorization-plugin/tasks, and vendor/plugins/rails_rcov/tasks are deprecated. Use lib/tasks instead. (called from /usr/local/rvm/gems/ruby-1.8.7-p371/gems/rails-2.3.11/lib/tasks/rails.rb:10) 
rake aborted! 
FATAL: password authentication failed for user "bbyidx" 
FATAL: password authentication failed for user "bbyidx" 
Bundle install was succesful with message as:Your bundle is complete! 
Use `bundle show [gemname]` to see where a bundled gem is installed. 

rake db:migrate產生這個錯誤。我正在運行ubuntu 12.04ruby-1.8.7,rails-2.3.11gem 1.5.3

我該如何解決這個問題? 在此先感謝。

回答

4

您是否爲您的postgres用戶設置了密碼?

在你config/database.yml,你應該把你的數據庫設置正確:

development: 
    adapter: postgresql 
    encoding: unicode 
    database: your_app_development # name your development app something 
    host: localhost 
    pool: 5 
    username: your_username 
    password: your_password # or leave blank if you didn't set a password 

test: 
    adapter: postgresql 
    encoding: unicode 
    database: your_app_test 
    host: localhost 
    pool: 5 
    username: your_username 
    password: your_password 
+0

這裏是我的database.yml#的SQLite 3.x版 適配器:PostgreSQL的 數據庫:bbyidx_dev 用戶名:bbyidx 密碼: 123456 host:localhost – user2295369 2013-04-23 15:23:21

+0

你是否嘗試改變它,就像我寫的一樣?你可以保留你當前擁有的名字。 – 2013-04-23 15:26:23

+0

感謝您的建議。我遵循[鏈接](http://railskey.wordpress.com/2012/05/19/postgresql-installation-in-ubuntu-12-04/)在ubuntu12.04中安裝postgresql。 – user2295369 2013-04-23 15:28:29

相關問題