Mysql-MySQL character set is not resolved after Baidu

Source: Internet
Author: User
I used wampServer. when I used Java to record data in MySQL today, I tried Chinese garbled characters in my. the default-character-set and character_set_server statements are added to the] client] and [mysqld] of the INI file, but the wamp cannot be started properly. please specify how to change it to the gbk character set permanently. The change is as follows: [client] port3306sockettmpmysql. sockdefault-character-setgbk... character set mysql garbled

I am using wampServer. when I use Java to record data in MySQL today, Chinese characters are garbled.
I have tried to add default-character-set and
Character_set_server statement, but the wamp cannot be started normally at last. please specify how to change it to the gbk character set permanently. The change is as follows:
[Client]
Port = 3306
Socket =/tmp/mysql. sock
Default-character-set = gbk
Character_set_server = gbk

[Mysqld]
Port = 3306
Default-character-set = gbk
Character_set_server = 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.