Window System MySQL cannot input and cannot display Chinese processing configuration

Source: Internet
Author: User

The first step : Use Notepad to open the "My.ini" file in the MySQL installation directory.

# MySQL Client library initialization. [Client]port=3306[MySQL]default-character-set=utf8

See if Default-character-set UTF8 is not UTF8 can be changed! (The previous version may not have this sentence directly added to the good!) )

Step Two : Enter in MySQL database cmd: show variables like '%char% ';

This is what it looks like after the setting is successful.

Step three :

set character_set_database=UTF8; set character_set_server=UTF8; set character_set_client=GBK; set CHARACTER_SET_CONNECTION=GBK;

This is a configuration that can be inserted in Chinese, and these commands must be entered in CMD run MySQL.

Fourth Step:

Set CHARACTER_SET_RESULTS=GBK

This is the setting that can display the Chinese configuration. Get

Window System MySQL cannot input and cannot display Chinese processing configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.