错误的异常信息为Index column size too large. The maximum column size is 767 bytes

使用mysql建表的时候报索引太大,错误异常信息为Index column size too large. The maximum column size is 767 bytes。
首先我先将mysql的配置文件更改了一下设置为
default-storage-engine=INNODB
innodb_file_format = BARRACUDA
innodb_large_prefix=on
解决了一部分问题,但是有几张表是从别处考过来,这个时候需要更改表的结构
alter table 表名 row_format=dynamic;
alter table 表名 row_format=compressed;

你可能感兴趣的:(错误的异常信息为Index column size too large. The maximum column size is 767 bytes)