https://wenku.baidu.com/view/d2d4f15ba8114431b80dd81f.html
vim /etc/mysql/my.cnf
[client]
default-character-set = utf8
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake
[mysql]
default-character-set = utf8