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