当前位置:首页 > 监控、日志 > 正文内容

解决 Specified key was too long; max key length is 767 bytes 问题

sa2021-12-12监控、日志

安装cacti过程中,在导入cacti.sql时存在错误提示:Specified key was too long; max key length is 767 bytes ;

解决方法:

修改mysql配置,

set global innodb_file_format = BARRACUDA;

set global innodb_large_prefix = ON;

set global innodb_file_per_table=ON;

修改后查看:

show variables like 'innodb_large_prefix';

image.png

show variables like 'innodb_file_format';

image.png

show variables like 'innodb_file_per_table';

image.png

修改后再次导入无报错。

版权声明:本文由老瓦罐儿煨汤发布,如需转载请注明出处。

本文链接:https://www.zhangchen.cc/?id=17

返回列表

没有更早的文章了...

没有最新的文章了...

评论列表

游戏攻略网
2024-07-26

识别码:kquytz30742TV-文章写的真不错https://www.gaofeick.com/

游戏攻略网
2024-07-27

识别码:gmclhi72168IB-文章写的真不错https://www.gaofeick.com/

游戏攻略网游戏攻略网

识别码:cbxjer0589**O-文章写的真不错https://www.ldyyouxi.com/

游戏攻略网
2024-07-27

识别码:hfzpnu96470VP-文章写的真不错https://www.gaofeick.com/

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。