Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错了,大大 #41

Open
lmxtsy opened this issue Oct 19, 2024 · 1 comment
Open

报错了,大大 #41

lmxtsy opened this issue Oct 19, 2024 · 1 comment

Comments

@lmxtsy
Copy link

lmxtsy commented Oct 19, 2024

D:\ibd2sql-main>python main.py sj4.ibd --sdi-table sj8.ibd --mysql5 --ddl
Traceback (most recent call last):
File "D:\ibd2sql-main\main.py", line 144, in
ddcw.init()
File "D:\ibd2sql-main\ibd2sql\ibd2sql.py", line 146, in init
self.inode = inode(self.read(),MYSQL5=self.MYSQL5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: init() should return None, not 'bool'

sj4是5.几的文件

@ddcw
Copy link
Owner

ddcw commented Oct 21, 2024

这个报错说明 sj4.ibd 文件中第2页inode有问题(比如:坏块, 也可能是不在这.). mysql的版本是多少呢? 万能的方法就是 文档里的ibd文件损坏的场景
第0页: fsp (ibd的基础信息和xds,keyring等)
第1页: insert buffer
第2页: inode buffer (索引信息)
第3页: sdi (8.0才有)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants