如何使用rails项目配置Postgresql?
我对ruby很新。 我正在尝试运行BBYIDX
并按照如何在Windows上安装BBYIDX?
当我尝试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.04
, ruby-1.8.7
, rails-2.3.11
和gem 1.5.3
我该如何解决这个问题? 提前致谢。
你为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
- Rails:如何使用scope来查找数组数组中的元素
- 如何将现有的rails应用程序移动到heroku? (sqlite到postgres)
- 如何引用并将多个User_ID保存到单个表单并在索引/显示页面Rails 4 App中显示所述ID
- 如何通过Rails 3中的时间片(总和,平均值,最小值,最大值等)获取聚合数据
- PG :: UndefinedTable:错误:关系“…”不存在
- Rake db:放弃我的旧桌子
- 怎么逃避? (问号)运算符在Rails中查询Postgresql JSONB类型
- 在搜索分数时,这是正确的Rails查询吗?
- PostgreSQL字符串(255)限制 – Rails,Ruby和Heroku