MySQL——Incorrect string value: '\xE7\x8C\xAA\xE5\x85\xAB...' for column 'xx' at row 1

这是因为数据库字段不是utf-8,所以

alter table 表名 change 字段名 字段名 varchar(50) character set utf8;

posted @ 2021-06-08 23:04  bug_maker_king  阅读(175)  评论(0)    收藏  举报