Skip to main content

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::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).) In rails?


1)change the gemfile in mysql version
 gem 'mysql2'

2)Change to mysql2 version
 gem 'mysql2','0.3.20'

Comments

  1. Thanks a lot for sharing such a useful information. Cryptex Technologies is one of the most renowned Ruby on Rails development companies in India. We offer best price in the industry and complete value of money to clients. If you are looking for any help feel free to ask at: info@cryptextechnologies.com

    ReplyDelete
  2. Nice post ! Thanks for sharing valuable information with us. Keep sharing.. Ruby on Rails Online Training

    ReplyDelete

Post a Comment