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;

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM