当前位置:Gxlcms > 数据库问题 > Mysql5.7修改字符集

Mysql5.7修改字符集

时间:2021-07-01 10:21:17 帮助过:18人阅读

 

技术分享图片

 2、修改如下文件:

C:\ProgramData\MySQL\MySQL Server 5.7

 

 

3、在该文件下进行配置修改 


[client] 
default-character-set = utf8

[mysql] 
default-character-set = utf8

[mysqld] 
character-set-client-handshake = FALSE 
character-set-server = utf8
collation-server = utf8_unicode_ci 
init_connect=’SET NAMES utf8’

 

图示:

技术分享图片

 

 4、启动mysql服务

 net start mysql57

技术分享图片

 

6、查看字符集:

show variables like ‘character%‘;

技术分享图片

 

Mysql5.7修改字符集

标签:show   hand   init   efault   like   bsp   span   ble   log   

人气教程排行