MySQL新增字段报错:ERROR 1118 -- Row size too large. The maximum row size for the used table type
MySQL新增字段报错:ERROR 1118 – Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.
错误信息
ERROR 1118 : Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.
You have to change some columns to TEXT or BLOBs
错误原因
MySQL建表时有一个单行最大限制长度限定:一张表中所有字段设置的字节数总和不大于65535字节
- 注意点一:单个字段大小超过65535转换为text
- 注意点二:其余字段总和不超过65535字节(不包括BLOB/TEXT)
- 注意点三:数据库使用UTF-8编码,一个字符=三个字节大小
报错举例:数据库存在10个varchar字段,每个大小为3000 则数据库单行目前计算长度为 3000 * 10 * 3 = 90000 > 65535 则
解决办法:将数据库表大字段类型设置为TEXT,或者将部分可以减小长度的长度调小至总和小于65535
MySQL新增字段报错:ERROR 1118 -- Row size too large. The maximum row size for the used table type相关推荐
- mysql source导入报错ERROR 1366的解决方法
mysql source导入报错ERROR 1366的解决方法 参考文章: (1)mysql source导入报错ERROR 1366的解决方法 (2)https://www.cnblogs.com/ ...
- mysql text 最大长度 报错 Row size too large. The maximum row size for the used table type
数据类型长度如下 TINYTEXT 256 bytes TEXT 65,535 bytes ~64kb MEDIUMTEXT 16,777,215 bytes ~16MB LONGTEXT 4, ...
- mysql创建用户报错ERROR 1290
使用navicat 给mysql创建用户报错ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv op ...
- MySQL 添加字段报错1005 Can‘t create table ‘#sql-12d23_4bd‘ (errno: 28)
问题描述:MySQL 添加字段报错1005 Can't create table '#sql-12d23_4bd' (errno: 28) 解决方法: 1.可以考虑一下是否是硬盘内存已满 2.如果上述 ...
- oracle数据库新增字段报错
oracle数据库新增字段报错 需要在oracle数据库中新增一个字段,并且该字段不能为空,执行新增方法,报错 **因为表里面已经有数据了,就不能添加非空列了,除非指定默认值 **或者先将该字段设置为 ...
- MySQL删除用户报错:ERROR 1396 (HY000): Operation DROP USER failed for ‘tsjt‘@‘127.0.0.1‘
背景: 本地安装的MySQL的MariaDB,期间创建了两个名为tsjt的不同登录ip的用户,一个为127.0.0.1,另一个为localhost.测试完毕后准备删除. 此时却发现创建的tsjt@12 ...
- Mysql 出现Error 1118 Row size too large. The maximum row size is 65535 的解决办法
(仅作记录,下面的解决步骤我试了一下还是会报同样的错误,问题没有解决,只好把varchar类型的大小挨个的改小了一点.若是哪位大神调好了,还请指点一二.) 解决步骤 1. 在MySQL的配置文 ...
- oracle ||#039; where #039;||condition;,帝国cms后台添加字段提示#039;Row size too large. The maximum row size...
今天在帝国cms后台创建系统模型,添加字段时报了一个错误,ERROR 1118 (42000): Row size too large. The maximum row size for the us ...
- Cannot create table [data_source]: 1118 - Row size too large. The maximum row size for the used tabl
1.问题 在导入mysql数据库时,报错: Cannot create table [data_source]: 1118 - Row size too large. The maximum row ...
最新文章
- php soap模块的安装
- 四阶龙格库塔法的基本思想_SIR模型计算基本再生数R0
- 强化学习(九)Deep Q-Learning进阶之Nature DQN
- Pythont通过request以及BeautifulSoup爬取几千条情话
- 2021杨雪洋高考成绩查询,青春由磨砺而岀彩,人生因奋斗而升华 ——我校隆重举行2021届高考备考动员暨学业水平考试表彰大会...
- 首页静态生成 错误:客户端发现响应内容类型为“text/html”,但应该是“text/xml”...
- 微课|Python使用Barrier对象实现多线程同步
- linux yum libsasl2,CentOS8 yum 凡是安装 安装mysql +需要:libsasl2.so.2()(64bit)
- Flash Player Control for ASP.NET
- 实战篇:如何用Keras建立神经网络(附全部代码) 1
- 在微软Ajax框架中异步调用WebService(JavaiScript中调用)
- 一种防止拍摄屏幕的新技术
- android 删除图片后通知系统图库删除图片
- 打印1000-2000年的闰年
- 词袋模型和词向量模型
- 齐博x1教程:快速增加下拉菜单
- overleaf 罕见中文字符 部分中文字符无法显示
- C语言 函数返回多个值方法
- JavaScript -- array类型
- 2021/8/15 考试总结