Created
August 8, 2014 17:33
-
-
Save peschmae/d09935611a960ab13a7c to your computer and use it in GitHub Desktop.
Charset Conversion
This file contains 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
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARCHAR(255) CHARACTER SET latin1; | |
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARBINARY(255); | |
ALTER TABLE <TABLENAME> CHANGE <COLUMNNAME> <COLUMNNAME> VARCHAR(255) CHARACTER SET utf8; |
This file contains 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
ALTER DATABASE <DATABASE> CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
ALTER TABLE <TABLENAME> CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment