修改MySQL配置mysql
1.在mysql的安裝目錄下找到my.ini,做以下修改:
[mysqld]
character-set-server=utf8mb4
[mysql]
default-character-set=utf8mb4sql
2 重啓.net
net stop mysql
net start mysqlserver
3 修改表get
ALTER TABLE 表名 CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;配置