Troubleshooting database MySQL Insertion garbled problem

Source: Internet
Author: User

When we encounter MySQL garbled problem, the general need to modify the My.ini file;

I came across two versions, one mysql5.5 and the other mysql5.7 .

5.5 is under this directory: C:\Program files\mysql\mysql Server 5.5

5.7 is under this directory: C:\ProgramData\MySQL\MySQL Server 5.7

Note that: 5.7 programdata is a hidden file, you need to enter the Programdata to see, and then to modify;

The next step is how to change the font:

The SQL file can be displayed by opening the My.ini with sublime, and in SQL format:

Start the database in PowerShell, then enter \s, view the character set,

If it is GBK in the file to change to GBK, if UTF8 do not change, in short, let the character set unified;

This operation will basically solve the MySQL garbled problem.

Note that you need to restart the server at last!

Troubleshooting database MySQL Insertion garbled problem

Related Article

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.