Mysql compressed version Chinese garbled Solution

Source: Internet
Author: User

Mysql compressed version Chinese garbled solution compressed version mysql does not like the installation version can be configured directly, need to be manually configured. Although there are various methods on the Internet: the default configuration in my compressed version is not in the msyql directory. ini, I see a mysql-default.ini file in it, rename it to mysql. after ini, you can simply change its configuration to the following,

1 [mysqld] 01 basedir = D:/Data/mysql02 datadir = D: /Data/mysql/data03 port = 330604 server_id = 11050607 # Remove leading # to set options mainly useful for reporting servers.08 # The server ults are faster for transactions and fast SELECTs.09 # Adjust sizes as needed, experiment to find the optimal values.10join _ buffer_size = 128M11sort_buffer_size = 2M12read_rnd_buffer_size = 2M1314sql_mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES

 

Start with mysqld and code 1 [mysql] 2 according to the online Configuration
Default-character-set = utf8

 

And use the mysql Command
1 set names 'utf8'

 

After checking the configurations, garbled characters are still displayed. The solution is to add the following code under [mysqld ]:
1character-set-server = utf8

 

Sure enough, solve the garbled problem,

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.