1、查看所有字段的编码格式:

mysql>show full columns from tableName;

2、查看表的编码格式:

mysql>show create table tableName;

3、修改数据库的编码格式:

mysql>alter database databasename character set utf8

4、修改表的编码格式

mysql>alter table tablename character set utf8

5、修改字段的编码格式

mysql>alter table tablename modify fieldname varchar(50) character set utf8