1. 根据条件修改下边的sql
将其修改成你需要修改的规则以及对应的数据库名,并执行。
SELECT CONCAT('ALTER TABLE ', TABLE_SCHEMA, '.', TABLE_NAME,
' CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;') '查询结果'
from information_schema.tables
where TABLE_SCHEMA = 'rong_hua'
and TABLE_COLLATION = 'utf8mb4_0900_ai_ci';