修改默认字符集

vi /etc/my.cnf

 

在【mysqld】下面加入default-character-set=utf8

在【client】下面加入default-character-set=utf8