当前位置:网站首页>Mysql报错:Specified key was too long; max key length is 767 bytes
Mysql报错:Specified key was too long; max key length is 767 bytes
2022-07-28 18:23:00 【徒步@天涯】
在执行mysql脚本时,报错:Specified key was too long; max key length is 767 bytes。
解决办法:
mysql的字符集为utf8mb4
1、先检查一下数据库被限制了索引的大小
SHOW variables like 'innodb_large_prefix';
如果查询的值是off的话,执行下面的命令
SET GLOBAL INNODB_LARGE_PREFIX = ON;
2、执行完了,还需要查看当前innodb_file_format引擎格式类型是不是BARRACUDA
SHOW variables like ‘innodb_file_format’;
如果不是的话则需要修改
SET GLOBAL innodb_file_format = BARRACUDA;
边栏推荐
- Raspberrypico analytic PWM
- 83. (cesium home) how the cesium example works
- Commands related to obtaining administrator permissions
- C language - data type
- 7. Functions of C language, function definitions and the order of function calls, how to declare functions, prime examples, formal parameters and arguments, and how to write a function well
- Related concepts of multitasking programming
- ssm中项目异常处理
- Raspberry pie 4B parsing PWM
- Vivado designs PC and ram
- Why is customer support important to SaaS?
猜你喜欢

9. Pointer of C language (5) how many bytes does the pointer variable occupy

Storage of C language data in memory (1)

9. Pointer of C language (3) classic program, exchange the value of two numbers for deep analysis, (easy to understand), are formal parameters and arguments a variable?

Pop up modal box

CNN convolutional neural network structure
![Maximum exchange [greedy thought & monotonic stack implementation]](/img/ad/8f0914f23648f37e1d1ce69086fd2e.png)
Maximum exchange [greedy thought & monotonic stack implementation]

Usage Summary of thymeleaf

Install keras, tensorflow, and add the virtual environment to the Jupiter notebook

MySQL startup error 1607 unexpected process termination

Data mining (data preprocessing) -- Notes
随机推荐
Does any elder brother know how to solve the huge flinksql log
Richpedia: A Large-Scale, Comprehensive Multi-Modal Knowledge Graph
Leetcode-297 serialization and deserialization of binary tree
Solve the cookie splitting problem (DP)
Introduction to seven kinds of polling (practice link attached)
关于链接到其他页面的标题
2. Floating point number, the difference between float and double in C language and how to choose them
根据openGauss/MogDB的lwtid查看线程堆栈。
Basic mathematical knowledge (update)
[C language] Pointer elementary knowledge points
New fruit naming (DP is similar to the longest common subsequence)
通配符 SSL/TLS 证书
[experiment sharing] CCIE BGP reflector experiment
WFST decoding process
Raspberry pie 3b ffmpeg RTMP streaming
C language - data storage
Solutions to the environment created by Anaconda that cannot be displayed in pycharm
Communication learning static routing across regional networks
一文让你搞懂什么是TypeScript
8. Compilation errors of C language and Chinese explanation