修改数据库
alter table t_repair convert to character set utf8mb4;
修改数据表
ALTER TABLE t_repair CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE t_tel_department CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
显示数据表
SHOW FULL COLUMNS FROM t_repair;
显示MySQL设置
SHOW VARIABLES WHERE Variable_name LIKE ‘character_set_%‘ OR Variable_name LIKE ‘collation%‘;