If we have added wrong collation name of the database and its columns the we can get some problem with other languages and special character.
All other languages and characters will appear as ?????
So we can alter collation of database and table even we have data in table using following sql commands:
Database collation:
ALTER DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Table collation:
alter table
convert to character set utf8 collate utf8_unicode_ci;
Column collation:
ALTER TABLE
MODIFY VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Hope this information will help someone to change collation.
0 Comment(s)