Ibd2sql
parse mysql ibd file to sql for learn or recovery data
Install / Use
/learn @ddcw/Ibd2sqlREADME
ibd2sql
ibd2sql is tool of transform MySQL IBD file to SQL(data). Write using Python3 .
When you only have IBD data file or a portion of IBD data files left, you can use ibd2sql to parse the data within it.
Or when you drop/truncate some table, you can also use ibd2sql to parse the remaining data on the disk
DOWNLOAD & USAGE
download
lastest version: ibd2sql-v2.2 https://github.com/ddcw/ibd2sql/archive/refs/tags/v2.2.tar.gz
Linux
wget https://github.com/ddcw/ibd2sql/archive/refs/heads/ibd2sql-v2.x.zip
unzip ibd2sql-v2.x.zip
cd ibd2sql-ibd2sql-v2.x/
Windows
click https://github.com/ddcw/ibd2sql/archive/refs/heads/ibd2sql-v2.x.zip to download
usage
Linux
python3 main.py your_file.ibd --sql --ddl
Windows
Python3 is called Python on Windows
python main.py your_file.ibd --sql --ddl
WEB CONSOLE
python3 main.py your_file.ibd --web
# and then, you can visit http://yourip:8080 to view that ibd file
more usage: docs/USAGE.md
PERFORMANCE
env: MySQL 8.0.28 Python 3.10.4 CPU MHz: 2688.011
| ibd2sql VERSION | PARALLEL | RATE | | --------------- | -------- | ---------------------- | | 2.0 | 1 | 50941 rows/s, 25MB/s | | 2.0 | 8 | 209993 rows/s, 104MB/s | | 1.12 | - | 12037 rows/s, 6MB/s | | 0.3 | - | 53998 rows/s, 26MB/s |
CHANGE LOG
| VERSION | UPDATE | NOTE | | ------- | ------ | ---------------------------------------------------------- | | 2.x | 2025.8 | Support for more situations and improvement in performance | | 1.x | 2024.1 | Supports complete data types and 5.7 | | 0.x | 2023.4 | Only supports partial cases of 8.0 |
detail: docs/CHANGELOG.md
REQUIRE & SUPPORT
require: Python >= 3.6
support: MySQL 5.6, MySQL 5.7, MySQL 8.0, MySQL 8.4. MySQL 9.x
Data backup is very important
Related Skills
feishu-drive
337.7k|
things-mac
337.7kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
337.7kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
yu-ai-agent
1.9k编程导航 2025 年 AI 开发实战新项目,基于 Spring Boot 3 + Java 21 + Spring AI 构建 AI 恋爱大师应用和 ReAct 模式自主规划智能体YuManus,覆盖 AI 大模型接入、Spring AI 核心特性、Prompt 工程和优化、RAG 检索增强、向量数据库、Tool Calling 工具调用、MCP 模型上下文协议、AI Agent 开发(Manas Java 实现)、Cursor AI 工具等核心知识。用一套教程将程序员必知必会的 AI 技术一网打尽,帮你成为 AI 时代企业的香饽饽,给你的简历和求职大幅增加竞争力。
