Forked from attilahorvath/dump_restore_mysql_utf8mb4.sh
Created
January 16, 2025 14:39
-
-
Save omergorur/fa2555cd98aab24b9ae64af1d594c435 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment