查看编码格式: 进入mysql执行下面语句
show variables like '%character%';
修改编码格式:
set character_set_client=utf8;
set character_set_connection=utf8;
set character_set_database=utf8;
set character_set_results=utf8;
set character_set_server=utf8;
来源:oschina
链接:https://my.oschina.net/mynotes/blog/4297119