gpt4 book ai didi

mysql - EF6 迁移 Mysql 连接器 6.9 在收集 latin1_swedish_ci 时成功,但在 utf8 或 utf8mb4 时出错

转载 作者:行者123 更新时间:2023-11-29 19:58:43 25 4
gpt4 key购买 nike

enter image description here您好,我尝试使用 EF6.1.3 和迁移来生成数据库MySql(连接器6.9)版本5.7。但是当我尝试生成数据库时收到错误。错误:指定的key太长;最大 key 长度为 3072 字节。
我的数据库集合:utf8mb4_unicode_ci = 表 __migrations 和 ForenKeys... 未生成 ---- 为什么?
我的数据库集合:utf8_unicode_ci = 表 __migrations 和 ForenKeys... 未生成 ---- 为什么?
我的数据库集合:atin1_swedish_cii = 表 __migrations ... 成功!
我想使用 UTF8MB4_unicode_ci
我的português视频试图解释:https://www.youtube.com/watch?v=NJQqcZzF9ik (检查排序规则更改)

最佳答案

您应该查看 varchar 列并确保它们的最大长度为 191

关于mysql - EF6 迁移 Mysql 连接器 6.9 在收集 latin1_swedish_ci 时成功,但在 utf8 或 utf8mb4 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40600234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com