试图运行RoR中的数据库中,我有这个错误回报率数据库错误
Couldn't create database for {"adapter"=>"sqlite3", "pool"=>5, "timeout"=>5000, "database"=>"db/test.sqlite3"}
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
但是当我做宝石列表,我感到我有mysql2 (0.4.1)
我怎样才能解决这个问题?还有,为什么会发生这种情况?
为什么你的适配器是'sqlite3' ,将其更改为'mysql2' – Abhi
嗨,你的rails版本是什么。我认为这是轨道bug,检查此链接http://stackoverflow.com/questions/32457657/rails-4-gemloaderror-specified-mysql2-for-database-adapter-but-the-gem-i –
你可能想检查它这里:http://stackoverflow.com/questions/22932282/gemloaderror-specified-mysql2-for-database-adapter-but-the-gem-is-not-loade –