ruby on rails - Gem::LoadError for mysql2 gem, but it's already in Gemfile -


gem::loaderror specified 'mysql2' database adapter, gem not loaded. add `gem 'mysql2'` gemfile 

this error occurred while loading following files:

active_record/base 

this error on running rails server.

the mysql2 gem has been added gemfile well. 

i've done bundle install, , tried restarting server still error.

if have error when upgrading rails 4.2.4 (also rails 4.1.5) try using version of mysql2:

gem 'mysql2', '~> 0.3.18' 

apparently mysql2 isn't still compatible newer version of rails because rails 4.2.4 pretty new time of answering question me 8 september 2015 use above line in gem file , run:

bundle install  

you should go


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -