1.查看数据库编码:
show variables like '%char%';
2.修改字符编码:
set character_set_server=utf8; set character_set_database=utf8;
3.查看是否修改
show variables like '%char%';
1.查看数据库编码:
show variables like '%char%';
2.修改字符编码:
set character_set_server=utf8; set character_set_database=utf8;
3.查看是否修改
show variables like '%char%';