About MySQL Chinese garbled

Source: Internet
Author: User

The first step: Check the SQL script to see if the statement that created the database has a setting utf8:create the default character set UTF8;

Step two: At the end of the statement that creates the table, add: Character set = UTF8; make the table recognize UTF8;

The third step: because the operating system is Chinese, so character_set_results must be set to Gb2312,results is when you query the database results.

<!--attention!!! This setting is only currently valid, the next time you open SQL or the original settings--

Set Character_set_client=utf8;
Set Character_set_connection=utf8;
Set Character_set_database=utf8;
Set character_set_filesystem=binary;
Set character_set_results=gb2312;
Set Character_set_server=utf8;
Set Character_set_system=utf8;

Fourth step: source E:/shop.sql; complete.

About MySQL Chinese garbled

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.