Ruby on rails ActiveRecord::ConnectionNote已使用正确的YAML设置建立

Ruby on rails ActiveRecord::ConnectionNote已使用正确的YAML设置建立,ruby-on-rails,ruby,ruby-on-rails-3,castle-activerecord,Ruby On Rails,Ruby,Ruby On Rails 3,Castle Activerecord,我刚刚启动了一个新的spree应用程序。 我生成了项目,安装了capistrano和其他gems 当我运行rakedb:create(以及任何其他任务)时(使用--trace) 这是config/database.yml # MySQL. Versions 4.1 and 5.0 are recommended. # # Install the MYSQL driver # gem install mysql2 # # Ensure the MySQL gem is defined in

我刚刚启动了一个新的
spree
应用程序。 我生成了项目,安装了
capistrano
和其他gems

当我运行
rakedb:create
(以及任何其他任务)时(使用
--trace

这是
config/database.yml

# MySQL.  Versions 4.1 and 5.0 are recommended.
# 
# Install the MYSQL driver
#   gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql2'
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_development
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_test
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

production:
  adapter: postgres
  encoding: utf8
  reconnect: false
  database: project_it
  pool: 5
  username: user-production
  password: pwd-user-production
  socket: /var/run/mysqld/mysqld.sock
因为我在本地机器上使用mysql,无法正确编译gem
pg
,所以我运行了
bundle--没有生产


我可以使用mysql客户端的凭据登录。这里可能有什么问题?

似乎您使用的是旧版本
spree\u core-0.40.0/lib/spree\u core/find\u by_param.rb:104:in

尝试在GEM文件中指定它,如

gem 'spree', '1.1.0'

然后安装新版本并\或清理旧版本。

是的,它解决了问题。谢谢
# MySQL.  Versions 4.1 and 5.0 are recommended.
# 
# Install the MYSQL driver
#   gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql2'
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_development
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: project_it_test
  pool: 5
  username: dever
  password: dever
  socket: /var/run/mysqld/mysqld.sock

production:
  adapter: postgres
  encoding: utf8
  reconnect: false
  database: project_it
  pool: 5
  username: user-production
  password: pwd-user-production
  socket: /var/run/mysqld/mysqld.sock
gem 'spree', '1.1.0'