编辑my.cnf,分别:
在[client]下增加default-character-set=utf8在[mysqld]下增加default-character-set=utf8同时加上init_connect='SET NAMES utf8&ap[……]

阅读全文