Skip to content

Instantly share code, notes, and snippets.

@bufordtaylor
Forked from ericboehs/upgrade_to_mysql57.sh
Created October 27, 2016 16:50
Show Gist options
  • Save bufordtaylor/4b02732da3f1f4a36d7a00b41be5adcd to your computer and use it in GitHub Desktop.
Save bufordtaylor/4b02732da3f1f4a36d7a00b41be5adcd 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
cp /usr/local/Cellar/mysql/5.7.12/support-files/my-default.cnf /usr/local/etc/my.cnf
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