-
-
Save 0xMatt/86800120133a540be8167c3a812d5ed6 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