MySQL command line garbled characters

Source: Internet
Author: User

Chinese garbled characters in the MySQL command line:

Cause of garbled characters: Chinese operating system command lineProgramThe default language is simplified Chinese, encoded as GBK. The database encoding for UTF-8, so the Chinese will be garbled.

Solution:

  • There are many online methods for modifying the code of the command line program, but none of them are successful.
  • Modifying the database encoding has serious consequences. It may cause garbled Chinese data and has not been tried.
  • Recommendation: Navicat navigation cat-the world's most powerful MySQL database management tool,Procedure-- Open database -- tool -- command line interface or F6--OK. Non-commercial version (free) download
  • Not recommended: You have to set it every time you start it. You do not know how to set it permanently.Procedure-- Show variables like '% character %' -- set character_set_results = GBK;

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.