-
Notifications
You must be signed in to change notification settings - Fork 72
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
大佬,为什么一直提示这里报错 #43
Comments
该报错是使用了
python3 main.py mysql_5.7.ibd --sdi-table /mysql_8/xxx.ibd --mysql5 --sql |
还得再麻烦您一下,按照您给的我操作之后,提示以下错误,您方便在帮我看一下吗?
[2024-11-07 15:20:30] [DEBUG] OPEN IBD FILE: message_session_relation_2024.ibd [2024-11-07 15:20:30] [DEBUG] CURRENT PAGE ID(find leaf page): 3
struct.error: unpack requires a buffer of 34 bytes |
看起来是BUG (解析varchar类型的时候的问题, 估计是nullable或者啥之类的数量错位了, 之前有过类似的BUG),
|
大佬,重新执行了一下,读取出了一些数据,也丢失了很多数据,我想问一下这些.ibd中无法读取的数据还能恢复吗?这里面,aa.ibd是8.0的,另一个是5.7.44, |
python3 main.py /tmp/ibd2sql_test_db/xxxx.ibd --sdi-table /tmp/ibd2sql_test_db/aa.ibd --mysql5 --sql > /tmp/t20241107_test.sql
filename="/tmp/ibd2sql_test_db/xxxx.ibd" # 要解析的ibd文件名
python3 main.py ${filename} --ddl # 获取表结构信息
filesize=`stat -c %s ${filename}`
maxpagecount=$[ ${filesize} / 16384 ]
current_page=1
while [ ${current_page} -le ${maxpagecount} ];do
echo "-- ${filename} PAGE NO: ${current_page}";
current_page=$[ ${current_page} + 1 ]
python3 main.py ${filename} --sdi-table /tmp/ibd2sql_test_db/aa.ibd --mysql5 --sql --page-start ${current_page} --page-count 1 2>/dev/null | grep "'流程:" >> /tmp/t20241107_recovery_1.sql ;
done
|
大佬,按照您提供的第三步我创建了一个aaa.py文件,放在了ibd2sql-main文件夹中,启动就提示以下问题, aaa.py 代码 |
[2024-11-07 14:25:06] [DEBUG] DEBUG MODE ON
[2024-11-07 14:25:06] [DEBUG] INIT ibd2sql
[2024-11-07 14:25:06] [DEBUG] FORCE False
[2024-11-07 14:25:06] [DEBUG] SET False
[2024-11-07 14:25:06] [DEBUG] MULTIVALUE False
[2024-11-07 14:25:06] [DEBUG] AUTO_DEBUG True
[2024-11-07 14:25:06] [DEBUG] FILTER:
[2024-11-07 14:25:06] [DEBUG] OPEN IBD FILE: message_session_relation_2024.ibd
[2024-11-07 14:25:06] [DEBUG] ANALYZE SDI PAGE
Traceback (most recent call last):
File "F:\test\ibd2sql-main\main.py", line 144, in
ddcw.init()
File "F:\test\ibd2sql-main\ibd2sql\ibd2sql.py", line 125, in init
self.PAGE_ID = sdino
^^^^^
UnboundLocalError: cannot access local variable 'sdino' where it is not associated with a value
The text was updated successfully, but these errors were encountered: