MySQL Character Set character-Set Concept Learning

Source: Internet
Author: User

1.
Character set (character set) is the ing from binary encoding to the specified symbol set;

Collation is a set of Character Set sorting principles;



2.
If you run show variables like "% character %" on the mysql client, the character set setting in "7" will appear:

Character_set_client

Character_set_connection

Character_set_database

Character_set_filesystem

Character_set_results

Character_set_server

Character_set_system

 

3.
MySQL has default character sets and sorting rules for each database and table on the server.

When creating a database, it inherits character_set_server settings from the server;

When creating a table, the character set is inherited from the database; when creating a column, the character set is inherited from the table;



The server assumes that the client is sending data according to the character_set_client character set;

Then, the data is translated according to the character set in character_set_connection;

When data is returned, the server translates the data according to the character set defined by character_set_result;

 

High-performance MySQL


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.