9
Rails 4-Gem :: LoadError:为数据库适配器指定了“ mysql2”,但未加载gem
在我的gemfile中,我有: gem 'mysql2' 我的database.yml如下: default: &default adapter: mysql2 database: <%= ENV['db_name'] %> username: <%= ENV['db_user'] %> password: <%= ENV['db_pass'] %> host: <%= ENV['db_host'] %> pool: 32 socket: <%= ENV['socket'] %> development: <<: *default production: <<: *default 我都运行了bundle update,bundle install并且我的Gemfile.lock显示mysql2。 但是,当我运行时,我rake db:migrate在计算机和登台服务器上都收到了此消息: myproject.com(master)$ rake db:migrate WARNING: Use strings for Figaro configuration. …