[MySQL exception solution] Operation not allowed when innodb_forced_recovery > 0 solution

Operation not allowed when innodb_forced_recovery > 0 solution

1. Background description

The Spring Boot project can be started normally, but an error is reported in the background when accessing the database, Cause: java.sql.SQLException: Operation not allowed when innodb_force_recovery > 0. For details, please see the figure below:
insert image description here

Two, the solution

Please open the mysql configuration file my.conf or my.ini and modify the following code:
innodb_force_recovery = 1

change into

innodb_force_recovery = 0
is enough.

3. Expansion

MySQL official introduction manual: 15.21.3 Forcing InnoDB Recovery

This article is over!

Guess you like

Origin blog.csdn.net/weixin_44299027/article/details/131765966