Sorry, you have to do it table by table. However you can write a single SQL to generate all the ALTER TABLE .. CONVERT TO ..
statements, then copy&paste them.
Caution: Since you are in 5.6 (or 5.5), you may hit the dreaded "767" (or MyISAM's "1000") limit, primarily if you have VARCHAR(255)
. Here are 5 workarounds: http://mysql.rjweb.org/doc.php/limits#767_limit_in_innodb_indexes (That link also has a sample of such a SELECT
.)
If your tables are currently MyISAM, you really should change to InnoDB. Tack this onto the ALTERs
: ENGINE=InnoDB
.
For conversion to InnoDB, see http://mysql.rjweb.org/doc.php/myisam2innodb