show variables like 'character%'; show variables like 'collation_%'; show variables like 'innodb_large_prefix'; show variables like 'innodb_file_format';
2. 對腳本進行修改,添加ROW_FORMAT=DYNAMIC
create table test (........) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
https://blog.csdn.net/pansanday/article/details/79375833
百度搜索下
1. 對數(shù)據(jù)庫進行設置
set global innodb_file_format = BARRACUDA
set global innodb_large_prefix = ON
注意: 在navicat中執(zhí)行成功,不清楚重啟數(shù)據(jù)庫是否還有效
查看是否生效
show variables like 'character%';
show variables like 'collation_%';
show variables like 'innodb_large_prefix';
show variables like 'innodb_file_format';
2. 對腳本進行修改,添加ROW_FORMAT=DYNAMIC
create table test (........) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
網(wǎng)上都找到了答案,就是不知道在哪里設置。