EFcore 5,MySQL,长文本列,内容大于 4 M(!)B 引发错误
我正在使用“EF core 5.0.9”和 MySQL,并且有一个表也包含此列
`Blob` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci
实体在数据库中写入/存储如下:
await context.SaveChangesAsync();
保存工作正常,直到entity.blob值大于大约4兆(! )字节。 显示错误消息:
“已建立的连接被主机中的软件中止。”
该错误与内容无关,而是与长度有关。
当内容与超过 400 万个“x”字符交换时也会发生该错误。
有什么想法吗?
I am using "EF core 5.0.9" and MySQL and have a table which contains also this column
`Blob` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci
Entities are writen/stored in the database as follows:
await context.SaveChangesAsync();
The saving works fine until the entity.blob value is greater than around 4 Mega(!)Bytes.
Shown error message:
"An established connection was aborted by the software in your host machine."
The error is not content dependent but length dependent.
The error also occurs when the content is exchanged with more than 4 million 'x' characters.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论