Rails 4 – Gem::LoadError: Specified ‘mysql2’ for database adapter, but the gem is not loaded

Just do:

gem 'mysql2', '~> 0.3.18' this gem works with rails version 4.x.x

if install gem 'mysql2', '~> 0.4.0' it produces gem load error and causes compatibility issues

Leave a Comment