MySQL 报 Table is read only,Failed to find tablespace for table

2天前 12.0k 0

insert 业务表报Table xxx is read only,error log 大量报错 [ERROR] InnoDB: Failed to find tablespace for table '"xxx.xx"' in the cache. Attempting to load the tablespace with space id x.

MySQL 报 Table is read only,Failed to find tablespace for table-1
MySQL 报 Table is read only,Failed to find tablespace for table-2

问题解决

查看my.cnf配置文件,发现数据库运行在innodb_force_recovery=4模式。

MySQL 报 Table is read only,Failed to find tablespace for table-3

调整innodb_force_recovery=0参数后,重启数据库相关表insert成功,错误日志报错消失。
MySQL 报 Table is read only,Failed to find tablespace for table-4

相关文章

pt-kill工具的使用
pt-ioprofile工具包的使用
数据库管理-第216期 Oracle的高可用-01(20240703)
DBMS_REPAIR EXAMPLE SCRIPT WITH PARTITION
数据库事务的四大特性: ACID 
使用BBED修复损坏的SYSTEM文件头

发布评论