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错误解决方案(转)相关推荐

  1. 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 ...

  2. 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 ...

  3. 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, ...

  4. 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 ...

  5. MySQL 索引条件下推 Index Condition Pushdown

    MySQL 索引条件下推 Index Condition Pushdown 出现在MySQL5.6及之后的版本中,能大幅提升查询效率,原因如下: 内容摘录自<深入理解MariaDB和MySQL& ...

  6. Linux连接mysql 出现Access denied for user ‘root‘@‘localhost‘(using password: YES)错误解决方案

    Linux连接mysql 出现Access denied for user 'root'@'localhost'(using password: YES)错误解决方案 参考文章: (1)Linux连接 ...

  7. 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 ...

  8. 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 ...

  9. 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 ...

最新文章

  1. signal---高级信号注册函数
  2. linux C 学习
  3. insertion Sort List (链表的插入排序) leecode java
  4. 1043 输出PATest (20分)_23行代码满分
  5. vs entityframwork Validation failed for one or more entities
  6. 10.Partial Dependence Plots
  7. 交叉编译Python-2.7.13到ARM(aarch32)平台
  8. 抓取Web网页数据分析
  9. 解决精简版的XP下,无法使用运程桌面
  10. Unity3D关于iTween知识详解和接口总结
  11. 使用大白菜U盘重装系统
  12. flash基本操作二-库面板和元件创建
  13. kali系统破解WiFi密码(二)
  14. 计算机应屏后打印不全怎样处理,打印机打印不完整是怎么回事【解决办法】
  15. 星球福利 | 读书的季节,送上豆瓣 Top10 区块链书单
  16. MTK介绍MTK平台介绍
  17. WordPress主题CorePress
  18. KNN 及 matplotlib 数据归一化
  19. 安卓android银联支付Unionpay
  20. 上海人工智能开发者大会AmazonDeepRacer自动驾驶赛车嘉年华圆满落

热门文章

  1. 求某天是该年的第几天(matlab实现)
  2. os中的判断文件是否存在
  3. 关于微信小程序云开发以及云开发实例展示
  4. 计算机网络协议第一章,网络协议基础知识
  5. pyinstaller打包软件失败的真正原因
  6. java 中showinfo方法,jmockito模拟方法中参数如何指定
  7. winwods 10 移动硬盘无法弹出
  8. 苹果发布新教育计划Apple School Manager
  9. jq linux下载文件,Linux中的Json格式化神器jq下载与安装
  10. 项目管理之-项目评估