Skip to content

Instantly share code, notes, and snippets.

@Mallinanga
Created March 14, 2013 21:19
Show Gist options
  • Save Mallinanga/5165379 to your computer and use it in GitHub Desktop.
Save Mallinanga/5165379 to your computer and use it in GitHub Desktop.
#db Alter database/table charset/collation
ALTER DATABASE __databasename__ DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE __tablename__ CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment