Skip to content

Instantly share code, notes, and snippets.

@lukecurtis93
Created March 3, 2020 23:36
Show Gist options
  • Save lukecurtis93/712ed48ee2698eb76b00513972fbf181 to your computer and use it in GitHub Desktop.
Save lukecurtis93/712ed48ee2698eb76b00513972fbf181 to your computer and use it in GitHub Desktop.
SED A database with different encoding
sed -E "s/(X'[^,\)]*')/CONVERT(\1 using utf8mb4)/g" ~/Desktop/rocheledb_2020-02-18.sql > ~/Desktop/outfile.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment