Getting the following error after running rake db:migrate
rake aborted! LoadError: dlopen(/Users/scott/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mysql2-
In my case just uninstalling and installing the mysql2 gem did the trick
$ gem uninstall mysql2
$ bundle install > Fetching mysql2 0.4.10 > Installing mysql2 0.4.10 with native extensions