yujiemeigui

 一、windows修改mysql字符集

 

1、前提:要停止mysql服务

 

 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%\';

 

分类:

技术点:

相关文章:

  • 2021-06-12
  • 2021-11-28
  • 2021-07-09
  • 2021-07-24
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-11-28
  • 2022-01-14
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
相关资源
相似解决方案