一、windows修改mysql字符集

 

1、前提:要停止mysql服务

 

Mysql5.7修改字符集

 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’

 

图示:

Mysql5.7修改字符集

 

 4、启动mysql服务

 net start mysql57

Mysql5.7修改字符集

 

6、查看字符集:

show variables like 'character%';

Mysql5.7修改字符集

 

相关文章:

  • 2021-09-01
  • 2021-10-05
  • 2021-07-17
  • 2022-03-03
  • 2021-10-21
  • 2021-10-06
  • 2022-02-24
  • 2022-01-27
猜你喜欢
  • 2022-01-15
  • 2021-05-17
  • 2021-05-21
  • 2022-01-26
  • 2021-06-14
  • 2021-11-28
相关资源
相似解决方案