Mysql报错:Specified key was too long; max key length is 767 bytes

在执行mysql脚本时,报错:Specified key was too long; max key length is 767 bytes。 解决办法: 一、修改mysql的字符集为uft8 再次执行时正常。 二、mysql的字符集为utf8mb4 1、先检查一下数据库被限制了索引的大小 SHOW variables like ‘innodb_large_prefix’; 如果查询的值是off的
相关文章
相关标签/搜索