mysql command line garbled solution

 

 Solution:

Modify the mysql configuration file my.ini, open my.ini find the default-charactor-set, changed utf8.

 

 

 Enter the command line:

show variables like'%char%';

 

 

 

 Modify the database code:

set character_set_client=gb2312;
set character_set_connection=gb2312;
set character_set_results=gb2312;

 

 

After changing the coding should look like this:

 

 Query again:

 

 Get.

 

Guess you like

Origin www.cnblogs.com/awrrays/p/11431811.html