mysql - 10 月 CMS - 第 1 行的 'content' 列的数据太长

标签 mysql laravel octobercms

我在将字段保存到数据库时出错,这给了我错误:字符串数据,右截断:1406 对于第 1 行的列“内容”来说数据太长。

但是数据库中的字段设置为类型:字符串,长度 191。我相信这会转换为 varchar。

还有人有这个吗?

最佳答案

https://stackoverflow.com/a/13182846/2693543

复制上面的答案

VARCHAR(X) Case: user name, email, country, subject, password

TEXT Case: messages, emails, comments, formatted text, html, code, images, links

MEDIUMTEXT Case: large json bodies, short to medium length books, csv strings

LONGTEXT Case: textbooks, programs, years of logs files, harry potter and the goblet of fire, scientific research logging

关于mysql - 10 月 CMS - 第 1 行的 'content' 列的数据太长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51918416/

相关文章:

mysql - GlassFish 无法连接到 mysql (XAMPP)

javascript - 如何通过内置的 Ajax 框架使用 October CMS 为 Select2 提供数据源

javascript - 类型错误:传递给 Illuminate\Database\Grammar::parameterize() 的参数 1 必须是数组类型,给定字符串

javascript - React CRUD 应用程序中出现错误 : TypeError: Cannot destructure property 'id' of 'this.props.event' as it is undefined

php - Laravel 6 artisan 包 :discover rename bootstrap/cache/packages

octobercms - octobercms 中的多个文件上传

OctoberCMS - 通过添加额外的按钮/链接来扩展用户插件的列表工具栏

Mysql计算重复行的百分比

mysql - 在 PostgreSQL 中使用 SQL 平衡值

mysql - 新安装 wampserver 后,MySQL 服务未启动