通过native导出.sql文件,脚本导入后发现中文乱码, 数据表创建时候有utf-8设置;

最终发现导入时候也是需要设置的:

数据库导入数据乱码解决记录
在sql文件里面添加如下设置:

SET character_set_client=‘utf8’;
SET character_set_connection=‘utf8’;
SET character_set_database=‘utf8’;

相关文章:

  • 2021-09-05
  • 2021-08-06
  • 2021-08-28
  • 2022-01-01
  • 2021-09-18
  • 2021-09-03
  • 2022-01-08
猜你喜欢
  • 2021-12-03
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-02-18
相关资源
相似解决方案