Skip to content

Instantly share code, notes, and snippets.

@adis-io
Forked from bufordtaylor/upgrade_to_mysql57.sh
Last active April 5, 2019 11:35
Show Gist options
  • Save adis-io/22de0345baf7370adcc54a93753816b3 to your computer and use it in GitHub Desktop.
Save adis-io/22de0345baf7370adcc54a93753816b3 to your computer and use it in GitHub Desktop.
Upgrading from MySQL 5.6 to 5.7 on OS X
mysql.server stop # kill the process if it fails
brew uninstall mysql56
brew update
brew install mysql@5.7
brew link mysql@5.7 --force
mysql.server stop
brew services start mysql # don't run via tmux
mysql_upgrade -u root --force
brew services restart mysql # don't run via tmux
cd ~/Code/17hats/17hats
bundle exec gem uninstall -a mysql2; bundle install
WIPE_DB=true bin/setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment