mysql5.7指定字符集
Posted zhouquan-1992-04-06
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql5.7指定字符集相关的知识,希望对你有一定的参考价值。
在这个配置下面加上下面这行就可以
[mysqld]
character_set_server=utf8
重启后:
mysql> show variables like ‘char%‘;
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
以上是关于mysql5.7指定字符集的主要内容,如果未能解决你的问题,请参考以下文章