Dump/restore MySQL database with utf8mb4 encoding

# dump
mysqldump -u user -p database --default-character-set=utf8mb4 --result-file=dump.sql
# restore
mysql -u user -p database < dump.sql

Leave a comment

Your email address will not be published. Required fields are marked *