Get MySQL change character set scheme

Source: Internet
Author: User
Keywords Web programming MySQL Tutorial
Tags change content get mysql mysql tutorial programming session set

Do you have a headache for getting MySQL to change the character set? Don't worry, the following article will give you the correct solution, the following article is mainly introduced to get the MySQL change character set scheme, the following is the specific description of the relevant content.

ROR+MYSQL5 UTF8 collocation Problem Solving solution

C # +mysqldriver.dll garbled problem

1, with the SET syntax to specify, do not add "GLOBAL" 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_set_results = UTF8; SET [GLOBAL] character_set_server = UTF8;

2. Only valid for this session.

SET NAMES ' UTF8 ';

3, directly modify My.cnf,[client] and [MySQLd] below each add a line of content, and then restart MySQL, the global effective.

Default-character-set = UTF8

The above related content is to the MySQL change character set introduction, hope you can have the harvest.

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.