Skip to content

Instantly share code, notes, and snippets.

@marcalc
Forked from andersonfreitas/migrate.sh
Created May 22, 2013 15:26
Show Gist options
  • Save marcalc/5628468 to your computer and use it in GitHub Desktop.
Save marcalc/5628468 to your computer and use it in GitHub Desktop.
mysqldump --all-databases -u root -p > full_backup.sql
mysql.server stop
brew remove mysql
rm -rf /usr/local/var/mysql
brew install percona-server
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix percona-server)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql.server start
mysql -u root < full_backup.sql
rm full_backup.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment