Specified key was too long; max key length is 767 bytes, Time: 0.029000s
部分云数据库默认是有索引长度限制的。

看下当前数据库的配置:
show variables like 'innodb_large_prefix'; 修改值,在任何能连数据库的工具中都能改,如navicat等。
set global innodb_large_prefix=ON;开启不限制索引长度。
部分云数据库默认是有索引长度限制的。

看下当前数据库的配置:
show variables like 'innodb_large_prefix'; 修改值,在任何能连数据库的工具中都能改,如navicat等。
set global innodb_large_prefix=ON;开启不限制索引长度。