原因是在创建数据库时没有指定编码utf8

正确的创建数据库语句是

create database test_databases charset=utf8;

如果上一步忘记了指定编码,会有如上报错,解决方案:

alter table tablename convert to character set utf8;

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-04-15
猜你喜欢
  • 2021-09-29
  • 2022-02-23
  • 2022-12-23
  • 2021-12-20
  • 2021-04-17
  • 2021-12-09
  • 2021-10-07
相关资源
相似解决方案