<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; MY-013183</title>
	<atom:link href="https://www.xifenfei.com/tag/my-013183/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Wed, 04 Nov 2026 15:33:30 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>[MY-013183] [InnoDB] Assertion failure故障处理</title>
		<link>https://www.xifenfei.com/2025/04/my-013183.html</link>
		<comments>https://www.xifenfei.com/2025/04/my-013183.html#comments</comments>
		<pubDate>Sat, 19 Apr 2025 08:08:54 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[MySQL恢复]]></category>
		<category><![CDATA[Assertion failure]]></category>
		<category><![CDATA[MY-011972]]></category>
		<category><![CDATA[MY-013183]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=11422</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2025/04/my-013183.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2025/04/my-013183.html" target="_blank">[MY-013183] [InnoDB] Assertion failure故障处理</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在一个存储故障的环境中,通过做硬件恢复,恢复出来一个mysql数据库,但是直接启动报错</p>
<p>[mysql@localhost bin]$ ./mysqld<br />
2025-04-17T03:34:50.352302Z 0 [System] [MY-010116] [Server] /data/mysql/mysql/bin/mysqld (mysqld 8.0.34) starting as process 58239<br />
2025-04-17T03:34:50.356910Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.<br />
2025-04-17T03:34:51.031054Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_002&#8242; Page [page id: space=4294967278, page number=160] log sequence number 1728577790947 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.031090Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.031118Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_002&#8242; Page [page id: space=4294967278, page number=131] log sequence number 1728577833027 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.031124Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.031138Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_002&#8242; Page [page id: space=4294967278, page number=3621] log sequence number 1728577635513 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.031142Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.031193Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_002&#8242; Page [page id: space=4294967278, page number=167] log sequence number 1728577760219 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.042480Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_001&#8242; Page [page id: space=4294967279, page number=184] log sequence number 1728577792529 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.042486Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.042359Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;innodb_undo_001&#8242; Page [page id: space=4294967279, page number=1975] log sequence number 1728577800027 is in the future! Current system log sequence number 1728577469817.<br />
2025-04-17T03:34:51.042681Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.059937Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.<br />
2025-04-17T03:34:51.159245Z 0 [ERROR] [MY-011971] [InnoDB] Tablespace &#8216;xff/t_xifenfei&#8217; Page [page id: space=153, page number=4] log sequence number 1728577926919 is in the future! Current system log sequence number 1728577498088.<br />
2025-04-17T03:34:51.159280Z 0 [ERROR] [MY-011972] [InnoDB] Your database may be corrupt or you may have copied the InnoDB tablespace but not the InnoDB redo log files. Please refer to http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html for information about forcing recovery.<br />
2025-04-17T03:34:51.163187Z 0 [ERROR] [MY-013183] [InnoDB] Assertion failure: fut0lst.ic:81:addr.page == FIL_NULL || addr.boffset &gt;= FIL_PAGE_DATA thread 140491735693056<br />
InnoDB: We intentionally generate a memory trap.<br />
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.<br />
InnoDB: If you get repeated assertion failures or crashes, even<br />
InnoDB: immediately after the mysqld startup, there may be<br />
InnoDB: corruption in the InnoDB tablespace. Please refer to<br />
InnoDB: http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html<br />
InnoDB: about forcing recovery.<br />
2025-04-17T03:34:51Z UTC &#8211; mysqld got signal 6 ;<br />
Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware.<br />
BuildID[sha1]=f183cd3ecfc35a4aa5da997063d5e8c97ffca986<br />
Thread pointer: 0x7fc6bc000b60<br />
Attempting backtrace. You can use the following information to find out<br />
where mysqld died. If you see no messages after this, something went<br />
terribly wrong&#8230;<br />
stack_bottom = 7fc6c7ffeaf0 thread_stack 0&#215;100000<br />
/data/mysql/mysql/bin/mysqld(my_print_stacktrace(unsigned char const*, unsigned long)+0&#215;41) [0x21323b1]<br />
/data/mysql/mysql/bin/mysqld(print_fatal_signal(int)+0x2a2) [0xfef932]<br />
/data/mysql/mysql/bin/mysqld(my_server_abort()+0&#215;75) [0xfefb75]<br />
/data/mysql/mysql/bin/mysqld(my_abort()+0xe) [0x212c24e]<br />
/data/mysql/mysql/bin/mysqld(ut_dbg_assertion_failed(char const*, char const*, unsigned long)+0&#215;309) [0x237cde9]<br />
/data/mysql/mysql/bin/mysqld() [0x2349cf0]<br />
/data/mysql/mysql/bin/mysqld() [0x234aa54]<br />
/data/mysql/mysql/bin/mysqld(trx_purge(unsigned long, unsigned long, bool)+0xeb) [0x234d56b]<br />
/data/mysql/mysql/bin/mysqld(srv_purge_coordinator_thread()+0&#215;450) [0x23224b0]<br />
/data/mysql/mysql/bin/mysqld(void Detached_thread::operator()&lt;void (*)()&gt;(void (*&amp;&amp;)())+0xca) [0x224bcaa]<br />
/lib64/libstdc++.so.6(+0xc2ba3) [0x7fc731c11ba3]<br />
/lib64/libpthread.so.0(+0x814a) [0x7fc732fe614a]<br />
/lib64/libc.so.6(clone+0&#215;43) [0x7fc7312eef23]</p>
<p>Trying to get some variables.<br />
Some pointers may be invalid and cause the dump to abort.<br />
Query (0): Connection ID (thread ID): 0<br />
Status: NOT_KILLED</p>
<p>The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains<br />
information that should help you find out what is causing the crash.</p>
<p>这个报错主要含义是：</p>
<ol style="color: #333333;">
<li>多个表空间（特别是innodb_undo_*）的日志序列号(LSN)比当前系统LSN要大，这表明可能存在数据损坏或不一致</li>
<li>系统最终因为断言失败而崩溃</li>
</ol>
<p>对于这样的情况,可以通过mysql强制拉库的方式启动mysql,如果可以启动成功直接使用mysqldump导出数据,然后重建新库,如果无法启动mysql成功,那就考虑通过对单个的ibd基表进行discard+import方式进行恢复参考:<a title="MySQL 8.0版本ibd文件恢复" href="https://www.xifenfei.com/2022/12/mysql-8-ibd-recovery.html" target="_blank">MySQL 8.0版本ibd文件恢复</a>，如果这个方法不能成功考虑直接通过工具读取ibd文件参考:<a title="frm和ibd文件数据库恢复" href="https://www.xifenfei.com/2022/07/mysql-ibd-undelete-error-recovery.html" target="_blank">frm和ibd文件数据库恢复</a></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/07/cannot-open-table-dbtab-from-the-internal-data-dictionary.html" rel="bookmark" class="crp_title">InnoDB: Cannot open table db/tab from the internal data dictionary of InnoDB  though the .frm file for the table exists</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/07/innobackupex%e5%a2%9e%e9%87%8f%e5%a4%87%e4%bb%bd%e6%b5%8b%e8%af%95.html" rel="bookmark" class="crp_title">innobackupex增量备份测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/mysql%e8%af%af%e5%88%a0%e9%99%a4%e6%95%b0%e6%8d%ae%e5%8f%8a%e5%85%b6bug%e5%88%86%e6%9e%90.html" rel="bookmark" class="crp_title">Mysql误删除数据及其bug分析</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/12/mysql-ibd-recovery.html" rel="bookmark" class="crp_title">[MySQL异常恢复]mysql ibd文件恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/04/innodb%e5%8f%82%e6%95%b0%e7%9a%84%e5%90%ab%e4%b9%89.html" rel="bookmark" class="crp_title">INNODB参数的含义</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/06/format-disk-mysql-recovery.html" rel="bookmark" class="crp_title">文件系统格式化MySQL数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/07/mysqld_safe%e5%90%af%e5%8a%a8%e6%8a%a5%e9%94%99.html" rel="bookmark" class="crp_title">mysqld_safe启动报错</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/05/mysql-parameter-error-startup-failed.html" rel="bookmark" class="crp_title">unknown variable &#8216;default-character-set=utf8&#8242; 处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/03/onlybuycyberfear-com-revrac.html" rel="bookmark" class="crp_title">.[OnlyBuy@cyberfear.com].REVRAC勒索mysql恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/06/1-5t-mysql-recovery.html" rel="bookmark" class="crp_title">1.5T MySQL数据库完美恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/12/mysql-8-ibd-recovery.html" rel="bookmark" class="crp_title">MySQL 8.0版本ibd文件恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/02/innodb-database-page-corruption-on-disk-or-a-failed-file-read-of-page.html" rel="bookmark" class="crp_title">InnoDB: Database page corruption on disk or a failed file read of page恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2025/04/my-013183.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
