Created
March 13, 2015 13:33
-
-
Save attilahorvath/f83596970d9f50cd5a83 to your computer and use it in GitHub Desktop.
Dump/restore MySQL database with utf8mb4 encoding
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
# dump | |
mysqldump -u user -p database --default-character-set=utf8mb4 --result-file=dump.sql | |
# restore | |
mysql -u user -p database < dump.sql |
thanks!
restore
mysql -u user -p database --default-character-set=utf8mb4 < dump.sql
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!