解决mysql1336

1.mysql字符集与插入数据字符集不匹配

USE 数据库名称
SHOW VARIABLES LIKE 'character%'
SET character_set_server=utf8;
SET character_set_database=utf8;

2.表属性字符集与插入数据字符集不匹配

SHOW FULL COLUMNS  FROM  表名称
ALTER TABLE  表名   CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci

 

posted @ 2019-01-11 17:56  Jwsmai  阅读(1855)  评论(0编辑  收藏  举报