mysql storage Chinese show ???, resolved by modifying my.ini

1, view the database of the current coding

show variables like '%character%';

 

Obviously, the need to change the encoding utf8

2, when the load is determined to start the service profile 

  Open the [service]

  Find [mysql] service, select [Property]

  

  :( get the configuration file path to your subject)

C:\ProgramData\MySQL\MySQL Server 5.7\my.ini

3, modify the my.ini file

[mysql]
default-character-set=utf8 

[mysqld]
default-character-set=utf8 

[client]
default-character-set=utf8

  On the basis of the original file can be modified on, do not do too much modification.

4, restart the mysql service

success

Guess you like

Origin www.cnblogs.com/ditf/p/11318653.html