rails-mysql rake db :create – Library not loaded libmysqlclient.20.dylib image not found

The fix was to

gem uninstall mysql2

then reinstall it again with

bundle  # gem install mysql2 would also work

This recompiles and resolves the reference that had been left over from having mysql 5.7.9 installed.

Leave a Comment