innodb_undo_tablespaces导致Mysql启动报错

1.问题

MySQL5.7设置innodb_undo_tablespaces = 2 报错如下:

2020-06-09T04:40:07.800321-05:00 0 [ERROR] InnoDB: Expected to open 2 undo tablespaces but was able to find only 0 undo tablespaces. Set the innodb_undo_tablespaces parameter to the correct value and retry. Suggested value is 0

2.原因:

innodb_undo_tablespaces 参数只能在初始化的时候设置,而不能在后续使用过程中修改。详见【MySQL】undo

3.改进:

MySQL5.7中,虽然支持独立表空间,但是默认还是在ibdata1中,与系统表空间共用。
而在MySQL8.0中就默认开启独立undo表空间了。见【MySQL8.0】undo

posted @   DawnTraveler  阅读(217)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示