标签:var com database base 字符 mysq set 查看 blog
1.查看数据库编码:
show variables like ‘%char%‘;
2.修改字符编码:
set character_set_server=utf8; set character_set_database=utf8;
3.查看是否修改
show variables like ‘%char%‘;
标签:var com database base 字符 mysq set 查看 blog
原文地址:http://www.cnblogs.com/xiaomingzaixian/p/7749392.html