In my gemfile I have:
gem \'mysql2\'
My database.yml is as follows:
default: &default adapter: mysql2 database: <
If you are able to upgrade your rails version, then change your Gemfile to this and it will solve the problem without downgrading the mysql2 gem version:
gem 'rails', '4.2.6'