Created
August 19, 2017 00:25
-
-
Save amurrell/69b71293f33230ca3f0773ce9346dec2 to your computer and use it in GitHub Desktop.
Fix collation and character set error from old mysql
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
# Unknown collation: 'utf8mb4_unicode_520_ci' | |
sed -i'.bak' "s/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g;" file.sql | |
# COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' | |
sed -i'.bak' "s/utf8_general_ci/utf8mb4_unicode_ci/g;" file.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment