测试的mysql版本为:5.7.14
查看mysql字符集命令:
show variables like ‘character_set_%‘;
以下是在my.ini文件中配置mysql统一字符集参数:
[mysqld]
character-set-server=utf8
;设置character_set_server和character_set_database默认值为utf8
[client]
default-character-set=utf8
;设置character_set_client、character_set_connection和character_set_results默认值为utf8
时间: 2024-10-23 10:15:56