MySQL 主键索引长度不够怎么解决!

MySQL 主键索引长度不够怎么解决!

环境:Linux Center OS
目标:安装 james-server-app-3.4.0 邮件服务
数据库: MySql 8.0.18

james 启动过程创建数据表结构抛出异常:
Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Specified key was too long; max key length is 3072 bytes {stmnt 2020602090 CREATE TABLE JAMES_MAIL_REPOS (MAIL_REPO_NAME VARCHAR(1024) NOT NULL, PRIMARY KEY (MAIL_REPO_NAME)) ENGINE = innodb} [code=1071, state=42000]

MySQL 修改配置:
SET GLOBAL innodb_file_format = BARRACUDA;
SET GLOBAL innodb_large_prefix = ON;

ERROR 1193 (HY000): Unknown system variable ‘innodb_file_format’
失败原因:
8.0版本移除了 innodb_file_format

走过路过的大神,请赐教谢谢!

你可能感兴趣的:(MySql)