Last active
December 17, 2015 14:29
-
-
Save andersonfreitas/5624595 to your computer and use it in GitHub Desktop.
Move from MySQL to Percona using Homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
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 | |
brew cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mysqldump -u root -p --all-databases