Mysql5.7降级到5.6遇到的坑

任何版本的升级或降级都存在兼容的问题,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;

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

 
posted @ 2019-06-10 11:26  JimmyShan  阅读(1628)  评论(0编辑  收藏  举报