Mysql5.7降级到5.6遇到的坑

时间:2019-06-10 13:23:58   收藏:0   阅读:707

任何版本的升级或降级都存在兼容的问题,DB更为明显,废话不多说,直接进入主题,问题描述如下:

Specified key was too long; max key length is 767 bytes

要想解决,需要修改如下参数:

set global innodb_large_prefix = ON;
set global innodb_file_format=Barracuda
set global innodb_file_format_max=Barracuda

顺便增加一点连接数:

set global max_connections = 2000;

好了,问题解决,做个备忘录。

 

原文:https://www.cnblogs.com/jimmyshan-study/p/10996733.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!