【MySQL异常解决】Operation not allowed when innodb_forced_recovery > 0 的解决办法

Operation not allowed when innodb_forced_recovery > 0 的解决办法

一、背景描述

Spring Boot 项目,能正常启动,就是访问数据库时后台报错,Cause: java.sql.SQLException: Operation not allowed when innodb_force_recovery > 0.,详情内容请看下图:
在这里插入图片描述

二、解决方案

请打开mysql的配置文件my.conf或my.ini 修改下面的代码:
innodb_force_recovery = 1

修改为

innodb_force_recovery = 0
即可。

三、拓展

MySQL官方介绍手册:15.21.3 Forcing InnoDB Recovery

本文完结!

猜你喜欢

转载自blog.csdn.net/weixin_44299027/article/details/131765966