Obtain the MySQL Character Set Change Solution

Source: Internet
Author: User

Are you very worried about getting MySQL to change the character set? Don't worry. The following articles will give you a correct solution. The following articles mainly introduce the solution for changing the character set of MySQL. The following describes the specific content.

ROR + MySQL5 utf8 with problem solution

C # + MySQLDriver. dll garbled

1. Use the SET syntax to specify the value. If "GLOBAL" is not added, the value is only valid for this session.

SET [GLOBAL] character_set_client = utf8; SET [GLOBAL] character_set_connection = utf8; SET [GLOBAL] character_set_database = utf8; SET [GLOBAL] character = utf8; SET [GLOBAL] character_set_server = utf8;

2. valid only for this session.

Set names 'utf8 ';

3. directly modify my. cnf, [client], and [MySQLd] to add a line of content, and then restart MySQL to take effect globally.

Default-character-set = utf8

The above content is an introduction to changing the character set of MySQL. I hope you will have some gains.

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.