Skip to content

Instantly share code, notes, and snippets.

@back-2-95
Last active April 16, 2021 04:38
Show Gist options
  • Save back-2-95/ef42b2ce2f464cd2ce5bd5fb579ab3ab to your computer and use it in GitHub Desktop.
Save back-2-95/ef42b2ce2f464cd2ce5bd5fb579ab3ab to your computer and use it in GitHub Desktop.
Convert Drupal 7 tables to utf8mb4

Go to where ever your drupal webroot is:

$ drush @none dl utf8mb4_convert-7.x
$ cd ~/.drush/utf8mb4_convert
$ wget https://www.drupal.org/files/issues/utf8mb4_convert-skip_converted_tables.patch
$ patch -p1 < utf8mb4_convert-skip_converted_tables.patch
$ cd /back/to/your/drupal/webroot/
$ drush cc drush
$ drush utf8mb4-convert-databases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment