mysql解决迁移复制数据库报错 Key或column 过长

set global innodb_large_prefix=on;
show variables like '%innodb_large_prefix%';
set global innodb_file_format = BARRACUDA;
set global innodb_file_format_max = BARRACUDA;
show variables like '%innodb_file_format%';

所有表创建语句添加ROW_FORMAT=DYNAMIC 

 

posted @ 2020-11-23 11:30  张立轩  阅读(230)  评论(0编辑  收藏  举报