数据导入的时候,一直报错这是为什么?
数据录入不进去,一直报错,是怎么回事?
数据录入不进去,一直报错,是怎么回事?
2017-06-18
我是因为数据库和表的编码方式没有改过来
mysql> set character_set_client=utf8;
mysql> set character_set_connection=utf8;
mysql> set character_set_database=utf8;
mysql> set character_set_results=utf8;
mysql> set character_set_server=utf8;
mysql> set character_set_system=utf8;
mysql> set collation_connection=utf8;
mysql> set collation_database=utf8;
mysql> set collation_server=utf8;
灵活选用
https://www.cnblogs.com/sanmenyi/p/7220583.html
mysql> alter table tdb_goods change goods_name goods_name varchar(100) character set utf8 collate utf8_unicode_ci not null default '';
mysql> alter table tdb_goods change goods_cate goods_cate varchar(40) character set utf8 collate utf8_unicode_ci not null default '';
mysql> alter table tdb_goods change brand_name brand_name varchar(40) character set utf8 collate utf8_unicode_ci not null default '';
再插入数据
举报