mysql 索引超767_mysql Index column size too large 超过767错误解决方案(转)
mysql在执行脚本时,报出了以下错误:
index column size too large. the maximum column size is 767 bytes
原因:
INNODB 引擎,UTF-8,主键字符串 默认最大 767,需要修改
解决方案:
1. 对数据库进行设置
set global innodb_file_format = BARRACUDA
set global innodb_large_prefix = ON
注意: 在navicat中执行成功,不清楚重启数据库是否还有效
查看是否生效
show variables like ‘character%’;
show variables like ‘collation_%’;
show variables like ‘innodb_large_prefix’;
show variables like ‘innodb_file_format’;
2. 对脚本进行修改,添加ROW_FORMAT=DYNAMIC
create table test (……..) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
参考文章:
转载直接来源:
本作品采用《CC 协议》,转载必须注明作者和本文链接
mysql 索引超767_mysql Index column size too large 超过767错误解决方案(转)相关推荐
- mysql错误码1709_MySQL5.6出现ERROR 1709 (HY000): Index column size too large问题的解决方法...
一.问题 mysql 5.6 出现如下问题: [ERROR 1709 (HY000): Index column size too large. The maximum column size is ...
- MySQL【问题记录 01】报错 1709 - Index column size too large. The maximum column size is 767 bytes. 可能是最简单的方法
1.问题重现 CREATE TABLE `xxl_job_registry` (`id` int(11) NOT NULL AUTO_INCREMENT,`registry_group` varcha ...
- 1709 - Index column size too large. The maximum column size is 767 bytes.
1,mysql导入同事发的sql文件报如下错误:1709 - Index column size too large. The maximum column size is 767 bytes. 2, ...
- ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.
MySQL版本5.6.35 在一个长度为512字符的字段上创建unique key报错 CREATE DATABASE dpcs_metadata DEFAULT CHARACTER SET utf8 ...
- MySQL 索引条件下推 Index Condition Pushdown
MySQL 索引条件下推 Index Condition Pushdown 出现在MySQL5.6及之后的版本中,能大幅提升查询效率,原因如下: 内容摘录自<深入理解MariaDB和MySQL& ...
- Linux连接mysql 出现Access denied for user ‘root‘@‘localhost‘(using password: YES)错误解决方案
Linux连接mysql 出现Access denied for user 'root'@'localhost'(using password: YES)错误解决方案 参考文章: (1)Linux连接 ...
- Mysql数据库报错:Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DY
1.问题描述: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DY ...
- Mysql数据库报错:Row size too large ( 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DY
1.问题描述: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DY ...
- mysql 1118 8126_ERROR 1118 (42000): Row size too large ( 8126).
最近在做数据库还原时候,遇到以下问题 ERROR 1118 (42000) at line 79532: Row size too large (> 8126). Changing some c ...
最新文章
- signal---高级信号注册函数
- linux C 学习
- insertion Sort List (链表的插入排序) leecode java
- 1043 输出PATest (20分)_23行代码满分
- vs entityframwork Validation failed for one or more entities
- 10.Partial Dependence Plots
- 交叉编译Python-2.7.13到ARM(aarch32)平台
- 抓取Web网页数据分析
- 解决精简版的XP下,无法使用运程桌面
- Unity3D关于iTween知识详解和接口总结
- 使用大白菜U盘重装系统
- flash基本操作二-库面板和元件创建
- kali系统破解WiFi密码(二)
- 计算机应屏后打印不全怎样处理,打印机打印不完整是怎么回事【解决办法】
- 星球福利 | 读书的季节,送上豆瓣 Top10 区块链书单
- MTK介绍MTK平台介绍
- WordPress主题CorePress
- KNN 及 matplotlib 数据归一化
- 安卓android银联支付Unionpay
- 上海人工智能开发者大会AmazonDeepRacer自动驾驶赛车嘉年华圆满落