1.创建表的时候添加
create table entries2 (
id int auto_increment,
title text,
content text,
posted_on datetime,
primary key (id)
) character set = utf8;
2.修改
alter table table_name convert to character set utf8;
如果有连接在表上,则修改表结构无法成功
mybaits 记得提交
标签:中文,set,text,character,支持,mysql,table,id From: https://www.cnblogs.com/xiaocourage/p/17127517.html