查看默认字符格式
show variables like '%character%';
修改库的字符编码
alter database 库名 character set utf8;
修改表的字符编码
alter table table_name convert to character set utf8 collate utf8_general_ci;
查看默认字符格式
show variables like '%character%';
修改库的字符编码
alter database 库名 character set utf8;
修改表的字符编码
alter table table_name convert to character set utf8 collate utf8_general_ci;
本文标题:修改库,表的字符编码
本文链接:https://www.haomeiwen.com/subject/ypuklctx.html
网友评论