当前位置:网站首页>[mysql] data synchronization prompt: specified key was too long; max key length is 767 bytes
[mysql] data synchronization prompt: specified key was too long; max key length is 767 bytes
2022-06-22 17:12:00 【Seven days at night】
see MYSQL edition :5.6.45
Database character set :utf8
Sort rule :utf8_general_ci
Specified key was too long;max key length is 767 bytes
Google Translate : The specified key is too long ; The maximum key length is 767 byte
It is found that the length of the index field exceeds the limit ,5.6 The maximum length of the version is 767 byte ;
Generally speaking varchar or text This problem can easily occur when the type is set to index ,utf8 One character takes up 3 byte , If set 255 length , Then for 765 byte ; If the set length is 256, Then for 768 byte ; It's easy to exceed the upper limit .
Solution :
1. Set the index field length to 255;
2. upgrade mysql edition ;
3. Reduce the index field length to 256 following .
边栏推荐
- Scala for derivation: the ability to define a value in the first part of a for expression and use it in subsequent (outer) expressions
- Linux system maintenance: mysql8.0.13 source code download and installation "fool" operation steps (Linux centos6.8) test available series
- jMeter使用案例
- NLog自定义Target之MQTT
- 快速掌握 ASP.NET 身份认证框架 Identity - 登录与登出
- Team management | how to improve the thinking skills of technical leaders?
- Special research on Intelligent upgrading of heavy trucks in China in 2022
- Read Apache shardingsphere
- spark关于数据倾斜问题
- 华为云招募工业智能领域合作伙伴,强力扶持+商业变现
猜你喜欢

Qt筆記-QMap自定義鍵(key)

Mybaits:接口代理方式实现Dao

推荐7款超级好用的终端工具 —— SSH+FTP

Quartus Prime 18.0软件安装包和安装教程

【进阶自动化测试第一步】1分钟带你了解自动化测试

MTLs guidelines for kubernetes engineers

【阿里云服务器-安装mysql的5.6版本安装,重装】

0 basic how to get started software testing, can you succeed in changing careers?

快速掌握 ASP.NET 身份认证框架 Identity - 用户注册

写给 Kubernetes 工程师的 mTLS 指南
随机推荐
Docker之MySQL主从连接提示:Communications link failure
STM32 ADC acquisition via DMA (HAL Library)
你管这破玩意儿叫高可用?
MySQL string field to floating point field
CMB model 23 ukey is not recognized on win7
The win10 desktop icon disappears and the toolbar turns black
[pop up box at the bottom of wechat applet package] I
Spark性能调优之道——解决Spark数据倾斜(Data Skew)的N种姿势
[step 1 of advanced automated testing] 1 minute to introduce you to automated testing
Social responsibility: GAC Honda advocates children's road traffic safety in "dream children's travel"
MYSQL_ ERRNO : 1292 Truncated incorrect date value At add_ num :1
团队管理|如何提高技术 Leader 的思考技巧?
跨平台Brave浏览器
使用 POST 向 ASP.NET Core 传递数据时的长度限制与解决方案
UI自动化定位利器-xpath实战
Xshell 7(SSH远程终端工具) v7.0.0109 官方中文正式版(附文件+安装教程)
社会担当 广汽本田“梦想童行”倡导儿童道路交通安全
Is flush easy to open an account? Is it safe to open an account online?
MTLs guidelines for kubernetes engineers
【招聘】[北京中关村/远程][TensorBase][开源数据仓库]等一群人,做一件事