Mysql garbled problem _ MySQL-mysql tutorial

Source: Internet
Author: User
Guide: garbled characters may occur during mysql database operations, which may cause a lot of trouble and inconvenience to your work. I will explain the garbled characters of the mysql database in the following section. The mysql garbled file uses the default character set gb231 when the database is created. Introduction: mysql databaseDuring the operation GarbledThis will cause a lot of trouble and inconvenience to your work. I will explain the garbled mysql database for you in the following article.

Mysql garbled file

This is because the default character set used when the database is created is a bit problematic for mysql after gb2312 upgrade, and setchar = gb2312 of the exported data is finally removed;

Then, the text set of setchar depends on your mysql. when cnf is started, what is the default character set file used? if the default value is gb2312, you cannot remove setchar from your character or gb2312.

So you can change setchar = gb2312 to setchar = latin1. if not, remove the default startup character set in the my. cnf file and restart mysql.

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.