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;

如若转载,请注明出处:https://www.gavindong.com/340.html

微信沟通