# ibd2mysql&&mysql数据库idb文件修复

- <https://github.com/ddcw/ibd2sql>


```
# 下载
wget https://github.com/ddcw/ibd2sql/archive/refs/tags/v2.0.tar.gz

# 解压

# 生成建表语句和insert语句
python main.py /data/mysql/bad_db/bigdata_viproomdb/ods_od_work.ibd --ddl --sql --output bigdata_viproomdb

# 恢复

```