vi /etc/my.cnf [mysqld] character-set-server=utf8 [mysql] default-character-set=utf8 来自为知笔记(Wiz) 转载于:https://www.cnblogs.com/djinmusic/p/4174349.html