需要修改my.ini
[client]下添加
default_character_set = utf8
[mysql]下添加
default_character_set = utf8
[mysqld]下添加
character_set_server = utf8
查看是否修改成功的方法:
Mysql执行:
show variables like “%char%”;
结果如下图
需要修改my.ini
[client]下添加
default_character_set = utf8
[mysql]下添加
default_character_set = utf8
[mysqld]下添加
character_set_server = utf8
查看是否修改成功的方法:
Mysql执行:
show variables like “%char%”;
结果如下图