任何版本的升級或降級都存在兼容的問題,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;
好了,問題解決,做個備忘錄。