Skip to content

Instantly share code, notes, and snippets.

@man4toman
Created October 16, 2018 13:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save man4toman/f69a8bbf0c51b77f4202af7f2c0e7754 to your computer and use it in GitHub Desktop.
Save man4toman/f69a8bbf0c51b77f4202af7f2c0e7754 to your computer and use it in GitHub Desktop.
Convert blob strings to utf8
#Note: This commands convert pure blob strings to utf8, if you use this commands on mixed strings, they didn't works as expected
alter table sending_info change message message LONGTEXT CHARACTER SET latin1;
alter table sending_info change message message LONGBLOB;
alter table sending_info change message message LONGTEXT CHARACTER SET utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment