In the windows system
1, to find my.ini file in the installation directory of mysql
2, found in the file my.ini [client] and [mysql] field, modify the default-character-set = gbk, if the attribute is not, add default-character-set = gbk, Save and Close, restart service mysql
Linux system
1. Open the configuration file, linux version I am using ubuntu, profile /etc/mysql/my.cnf
2, with the windows basically the same, different file