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_%';

  • 1
  • 2
  • 下一页

相关内容