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:
Two, the solution
Please open the mysql configuration file my.conf or my.ini and modify the following code:
innodb_force_recovery = 1change into
innodb_force_recovery = 0
is enough.
3. Expansion
MySQL official introduction manual: 15.21.3 Forcing InnoDB Recovery
This article is over!