mariadb utf8mb4导数据中文防止乱码需要设置编码

查看数据用:
SET character_set_client = utf8mb4;
SET character_set_results = utf8mb4;
SET character_set_connection = utf8mb4;

export!!导出数据用:
SET character_set_client = utf8mb4;
SET character_set_results = gb2312;
SET character_set_connection = utf8mb4;
import!!导入数据用:
SET character_set_client = utf8mb4;
SET character_set_results = utf8mb4;
SET character_set_connection = utf8mb4;

发表评论

电子邮件地址不会被公开。