vi /etc/my.cnf
[mysqld]
default-character-set = utf8default-collation=utf8_general_ci
/etc/init.d/mysql restart