Created
November 26, 2014 05:59
-
-
Save maxistar/0cec94c4e3b936c6296f to your computer and use it in GitHub Desktop.
Restoring broken mysql encoding
This file contains 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
mysqldump -h DB_HOST -u DB_USER -p DB_PASSWORD --opt --quote-names \ | |
--skip-set-charset --default-character-set=latin1 DB_NAME > DB_NAME-dump.sql | |
mysql -h DB_HOST -u DB_USER -p DB_PASSWORD \ | |
--default-character-set=utf8 DB_NAME < DB_NAME-dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment