Solving the problem of MySQL writing data garbled

Source: Internet
Author: User

MySQL default encoding is Latin.

My MySQL version is 5.6. There is no My.ini under the installation path, but there is my-default.ini. In fact, MySQL does not have a configuration file can also be started, but in order to set the encoding, you need to change My-default.ini to My.int.

Then modify the Character-set-server=utf8under [MySQL], [mysqld]Character-set-server=utf8


Reboot.

If you still have a problem, you can view the%mysql%/data/xxx.err log file

Solving the problem of MySQL writing data 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.