MySQL inserted in Chinese garbled

Source: Internet
Author: User
Tags mysql command line

Reference: http://blog.csdn.net/zzh920625/article/details/51226312

Reference: http://soft.chinabyte.com/database/354/12643354.shtml

The simplest trick is to not modify the My.ini file:

1. Stop the MySQL service

2. Start: X:\%path%\mysql\mysql Server 5.0\bin\mysqlinstanceconfig.exe

This program is to reset the MySQL wizard. You can set the default MySQL encoding. There are 3 options, the default is Latin1, the second is Utf-8, and the third one is free to choose. Here I chose the second utf-8 directly.

3. After completing the Configuration wizard, MySQL will start automatically.

4. Open the MySQL command line and enter:

mysql> SHOW VARIABLES like ' character% ';

If shown below:

The MySQL encoding is modified successfully.

MySQL inserted in Chinese garbled

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.