更改数据库字符集:

alter database test default character set utf8

更改表字符集:

alter table user default character set utf8