Recently, in the project group used by the MySQL database, the insertion of data garbled, on this issue to make a summary, we start from the most basic point, to the root causes of errors and solutions.Basic concepts character (Character) refers to
Character Set issues:Basic concepts? A character (Character) is the smallest of the ideographic symbols in a human language. such as ' A ', ' B ' and so on;? Given a series of characters, each character is given a numeric value that represents the
Character Set & character encoding methodThe character set (Character set) is a collection of multiple characters, with a variety of character sets, and each character set contains a different number of characters, where the characters can be
Docker run-p 3306:3306--name mysql-v/usr/local/mysql/my.cnf:/etc/mysql/my.cnf-v/usr/local/mysql/logs:/logs-v/usr/ LOCAL/MYSQL/DATA:/MYSQL_DATA-E mysql_root_password=root-d mysql:5.6
- P 3306:3306: map the container's 3306 port to the host's
/*************************************************************************** * MySQL Character Set setting * Description: * Database This block is often due to incompatible character sets resulting in data communication anomalies, so this side of
Basic Concepts• The character (Character) refers to the smallest of the ideographic symbols in the human language. such as ' A ', ' B ' and so on;• Given a series of characters, each character is given a numeric value that represents the
Notice: article written based on Ubuntu system1. About the MySQL character setMySQL Character set support (Character set supports) has two aspects:The character set (Character set) and the Sort method (Collation).MySQL support for character sets is
Basic Concepts
• character (Character) refers to the smallest form of semantic notation in human language. such as ' A ', ' B ', etc.;
• Given a series of characters, assign a numeric value to each character, and use a numeric value to represent
When using the phpMyAdmin operation database on the virtual host space, if you see that the MySQL character set shown on the phpMyAdmin home page is cp1252 West European (latin1), when we import the data there will be garbled, the solution is:On the
Garbled problem caused by MySQL character setMySQL Character set support (Character set supports) has two aspects:1. Character set (Character set)2, sorting Method (Collation).Support for character sets is refined to four levels:1. Servers (server)2.
I. Selecting the appropriate character setTwo. mysql-supported character setsMySQL server can support a variety of character sets, the same server, the same database, or even a different field of the same table can be specified using a different
(1) The simplest modification method is to modify mysql's my. INI file character set key value, such as default-character-setutf8character_set_serverutf8 after modification, restart mysql service, servicemysqlrestart using
MySQL character set: methods that do not contain garbled characters there are many types of character sets in the database. The main impact on programming is the client character set and database character set (there is also a server character set,
Deployment of Ubuntu12.0.4Linux server: modifying MySQL character set 5.x Ubuntu
Go to the mysql installation directory and find the configuration file,/etc/mysql/my. cnf
Run the following command:
sudo vi my.cnf
Go to the modify configuration
The following is a summary of MySQL character set operation commands that are run in mysql 5.5 command line:
View the character sets supported by MySQL:Show charset;View character set:StatusThe following is more specific:Show variables like
Character Set settings in Mysql are classified into the following levels: 1. mysql Server-level Character Set 2. database-level Character Set 3. character Set at the data table level 4. each character set at the data column level corresponds to a
The concept of character set is clear to everyone. Many people do not understand the proofreading rules. This concept is not used in general database development. mysql seems very advanced in convenience.
The concept of character set is clear to
MySQL Character Set modification command
1. modify server level. temporary changes: mysql> set global character_set_server = utf8; B. permanent change: shell> VI/etc/My. CNF [mysqld] default-character-set = utf8
2. modify Database Level A.
Author: skateTime: 2013/04/09
MySQL Character Set Summary
Today, my colleague, brother a, found a MySQL test server with garbled characters. He has recorded character sets before. I will try again today.
Modify the character set and default
Brief Description
Character Set and verification rulesCharacter Set is a set of symbols and encoding. A collation is a set of rules used to compare characters in a character set.MySql provides strong support in collation, and mongoel does not find
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.