视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
非正常关机时,innodb故障导致mysql无法启动的解决方法_MySQL
2020-11-09 18:14:56 责编:小采
文档

bitsCN.com
非正常关机时,innodb故障导致mysql无法启动的解决方法 一次非正常关机,mysql无法启动。查看err日志,显示: InnoDB: Starting crash recovery.InnoDB: Reading tablespace information from the .ibd files...InnoDB: Restoring possible half-written data pages from the doublewriteInnoDB: buffer...InnoDB: Error: trying to access page number 42949072 in space 0,InnoDB: space name ./ibdata1,InnoDB: which is outside the tablespace bounds.InnoDB: Byte offset 0, len 16384, i/o type 10.InnoDB: If you get this error at mysqld startup, please check thatInnoDB: your my.cnf matches the ibdata files that you have in theInnoDB: MySQL server. 120331 1:03:41 InnoDB: Assertion failure in thread 30732288 in file fil0fil.c line 4409InnoDB: We intentionally generate a memory trap.InnoDB: Submit a detailed bug report to http://bugs.mysql.com.InnoDB: If you get repeated assertion failures or crashes, evenInnoDB: immediately after the mysqld startup, there may beInnoDB: corruption in the InnoDB tablespace. Please refer toInnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.htmlInnoDB: about forcing recovery. 21:03:41 UTC - mysqld got signal 6 ; 没办法,只好在/etc/my.cnf中写入[mysqld] innodb_force_recovery = 4 但是仍然无法启动。改为:innodb_force_recovery = 6数据库可以读出来,在6的情况下,是无法修改数据库的,也无法插入,只能导出。 用mysqldump导出,再把innodb_force_recovery改为0,但是数据无法导入。 最后还是删除了数据库重建。 这是第二次遇到这种错误,标记一下。
作者 lsstarboy bitsCN.com

下载本文
显示全文
专题