MySQL 5.6 installation-free version (green or decompressed version) to modify the encoding, mysql5.6

Source: Internet
Author: User

MySQL 5.6 installation-free version (green or decompressed version) to modify the encoding, mysql5.6

See here: http://www.bkjia.com/sjkqy/989251.html

It took more than half an hour to try various methods on the Internet. It is estimated that the installation is normal. modify my. ini, but cannot find my. ini, found the my-default.ini, thought it is equivalent to modify this, it does not appear to be...

Method:
(1) copy the my-default.ini and rename it my. ini
(2) modify
(A) Add
Character_set_server = utf8
(B) SQL _mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES
Add:
Port = 3306
Default-character-set = utf8

Restart MySQL and run the show variables like 'character % 'command ';
Then you can see

Now OK ~~

PS: one of the reasons why I hate development and the current search engine is that it takes a lot of time for new users to try different blog methods and may not solve the problem, the code can be changed easily. How many blog posts have I tried ....... Too much time wasted

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.