Created
July 21, 2011 08:49
-
-
Save jeanmonod/1096807 to your computer and use it in GitHub Desktop.
Convert MYSQL DB to Unicode
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
mysql -e "SELECT TABLE_NAME, COLUMN_NAME, COLLATION_NAME FROM information_schema.COLUMNS where COLLATION_NAME != 'utf8_unicode_ci' AND TABLE_SCHEMA='your_database_name';" |
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
mysql -e "SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_COLLATION != 'utf8_unicode_ci' AND TABLE_SCHEMA='your_database_name';" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment