Skip to content

Instantly share code, notes, and snippets.

@hamsterbacke23
Last active September 16, 2015 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamsterbacke23/9377f6c400bb08f11551 to your computer and use it in GitHub Desktop.
Save hamsterbacke23/9377f6c400bb08f11551 to your computer and use it in GitHub Desktop.
mysql convert table and all columns to utf8
ALTER TABLE table COLLATE = utf8_general_ci;
ALTER TABLE table CONVERT TO CHARACTER SET utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment