- 查看mysql当前编码方式: show variables like 'character%'; -- 修改编码方式: set names gb2312; set character_set_client=gb2312; set character_set_connection= gb2312 ; set character_set_database= gb2312 ; set character_set_results= gb2312 ; set character_set_server= gb2312 ;