mysql识别中文

在配置的INI中加上这些

[mysql]
default-character-set=utf8
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8

原文地址:https://www.cnblogs.com/kaysily/p/4633034.html