Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Change the collation of database, tables and columns

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 233
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: