生成sql格式(将qdm723412313_db改为你的数据库名称即可):
SELECT concat( 'alter table ', table_name, ' engine=InnoDB CHARSET=utf8mb4; ' ) FROM information_schema.TABLES t WHERE table_schema = 'qdm723412313_db' AND table_type = 'base table';
生成数据如下:
alter table cmf_user engine=InnoDB CHARSET=utf8mb4; alter table think_ad engine=InnoDB CHARSET=utf8mb4; alter table think_ad_type engine=InnoDB CHARSET=utf8mb4; alter table think_admin engine=InnoDB CHARSET=utf8mb4; alter table think_admin_log engine=InnoDB CHARSET=utf8mb4; alter table think_answer_question engine=InnoDB CHARSET=utf8mb4; alter table think_article engine=InnoDB CHARSET=utf8mb4; alter table think_auth_group engine=InnoDB CHARSET=utf8mb4;
然后再复制执行即可