Home > Database > Mysql Tutorial > MySQL字符集的设置

MySQL字符集的设置

WBOY
Release: 2016-06-07 17:14:38
Original
1161 people have browsed it

MySQL的字符集支持(Character Set Support)有两个方面: 字符集(Character set)和排序方式(Collation)。MySQL对于字符集的支持细

Notice:文章基于Ubuntu系统而写

1.关于MySQL字符集

MySQL的字符集支持(Character Set Support)有两个方面: 

 字符集(Character set)和排序方式(Collation)。

MySQL对于字符集的支持细化到四个层次: 服务器(server),数据库(database),数据表(table)和连接(connection)。

MySQL对于字符集的指定可以细化到一个数据库,,一张表,一列,应该用什么字符集。

2.查看MySQL字符集 2.1.查看字符集的设置

mysql> show variables like 'character_set_%';


2.2.查看字符集排序设置

mysql> show variables like 'collation_%';

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template