mysql不能插入中文数据

上次遇到的是向mysql插入中文数据,中文数据乱码了。这次直接就不能插入中文数据了!!!!

参考博文:http://blog.csdn.net/generalyy0/article/details/7598027

总结:

①: 检查数据表所有字段的状态
show full columns from 表名;
②:发现Collation项非utf8,修改它!
alter table 表名change 字段名 字段名 varchar(100) character set utf8 collate utf8_unicode_ci not null default '';

posted @ 2017-03-08 16:55  zhongfucheng  阅读(124)  评论(0编辑  收藏  举报