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