Last active
February 18, 2018 17:46
-
-
Save diogopms/257f8f34a904a9eeb06f to your computer and use it in GitHub Desktop.
Fix character-set utf8 mysqldump mysql
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
time mysqldump -uroot -p --skip-set-charset --default-character-set=latin1 -h HOST TABLE | sed 's/CHARSET=latin1/CHARSET=utf8/g' > dump.sql | |
time mysql -uroot -p --default-character-set=utf8 -h HOST TABLE < dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment