Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我建立了一个 MySQL 数据库,版本 5.5.31。字符集的默认排序规则utf8mb4是utf8mb4_general_ci(如 所示SHOW CHARACTER SET)。我想将其更改为utf8mb4_unicode_ci.
utf8mb4
utf8mb4_general_ci
SHOW CHARACTER SET
utf8mb4_unicode_ci
有没有办法将默认分配从字符集更改为排序规则?还是硬编码并编译到 MySQL 二进制文件中?
ALTER DATABASE db_name CHARACTER SET utf8mb4_unicode_ci;
请参阅此处的参考资料。