MySQL--coding problem

View all character sets of the system: show variables like 'character%';
the character set has the following character sets about the client:
Character_set_client character_connection character_set_result They are about the client encoding settings.
If you want to be able to insert Chinese characters, you only need to modify them to gbk.
Modify the encoding set character_set_xxx=encoding.
The above modification is one-time, and it will be restored when the window is closed.
Permanent modification:
    Find the my.ini file in the mysql installation directory and modify default-character-set=gbk.     
After modification, the service needs to be restarted.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326480824&siteId=291194637