查看字符集 show variables like “%char%” 查看某数据库的字符编码 show create database database_name 查看表编码格式 show create table table_name; 修改服务端的字符编码即可(【mysqld】的参数配置)