Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active March 8, 2018 09:11
Show Gist options
  • Save ericboehs/c6f8638eaa90a024275fda45aae3824d to your computer and use it in GitHub Desktop.
Save ericboehs/c6f8638eaa90a024275fda45aae3824d 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
@jmgarnier
Copy link

What I had to do before: brew services stop mysql56 and / or kill mysql processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment