总结:
utf8_unicode_ci和utf8_general_ci对中、英文来说没有实质的差别。
utf8_general_ci校对速度快,但准确度稍差。
utf8_unicode_ci准确度高,但校对速度稍慢。
在 my.cnf中增加下列参数
[mysqld] init_connect=‘SET NAMES utf8′ default-character-set=utf8 default-collation = utf8_general_ci
执行查询 mysql> show variables
character_set_client | utf8 character_set_connection | utf8 character_set_database | utf8 character_set_results | utf8 character_set_server | utf8 character_set_system | utf8collation_connection | utf8_general_ci collation_database | utf8_general_ci collation_server | utf8_general_ci
时间: 2024-10-11 21:55:39