0
This error appears constantly, in my case I installed ruby, Gems, Rails, mysql2 all right. But when I tried:
rake db:create
another error appeared:
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).
Gem::Loadero: can’t Activate mysql2 (~> 0.3.13), already Activated mysql2-0.4.0. Make sure all dependencies are Added to Gemfile.
In this case, any attempt I was looking for generated an error, the solution I found was, access Gemfile and change to:
# Use mysql as the database for Active Record
gem 'mysql2', '~> 0.3.13'
saved and executed:
bundle exec rake db:create
voalá db created!
I hope I can help someone else with this post.