MySQL Chinese appears? , set UTF8

Source: Internet
Author: User
Tags mysql client

MySQL under the Windows system:

1. Locate the MySQL profile: The file name may not be my.ini (such as My-default.ini) and modified to My.ini.

Open the configuration file and edit it as follows: (if no [client] is added)

3. Restart the MySQL server, right-click on the computer-manage--。。。。

Operate in the MySQL client (or cmd at the command line)----"The results are as follows: Latin1;

The database created later is the UTF8 format;

4. If you have already created a database and a table, the following method is used to modify it;

1. Modify the encoding of the entire database:

ALTER DATABASE name default character set UTF8 collate utf8_general_ci;

2> Modify tables (which are modified with the formatting of columns and fields in the table)

ALTER TABLE name convert to character set UTF8 collate utf8_general_ci;

At this point, the modification is complete, inserting a new data again;

MySQL Chinese appears? , set UTF8

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.