1rm Gemfile.lock
2gem uninstall mysql2
3gem install mysql2 -v '0.5.2' -- --with-mysql-config=/usr/local/Cellar/mysql@5.7/5.7.25/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include --platform=ruby
4bundle install
5