Hi, I used this script to recover an ibd file. When I run it, the script raised a valueError around line 119 when idx_type == 4.
I add this type to the script as follow. Maybe you can change a little bit of it like:
idx_type = idx.get('type')
if idx_type == 1:
builder.write(f'PRIMARY KEY ({show_cols})')
elif idx_type in {2, 3}:
builder.write(f'INDEX {idx_name} ({show_cols})')
elif idx_type in == 4:builder.write(f'FULLTEXT {idx_name} ({show_cols})')
else:
raise ValueError(f'unsupport index type: {idx_type} for {ibd_name}/{idx_name}')
Hi, I used this script to recover an ibd file. When I run it, the script raised a valueError around line 119 when idx_type == 4. I add this type to the script as follow. Maybe you can change a little bit of it like:
idx_type = idx.get('type') if idx_type == 1: builder.write(f'PRIMARY KEY ({show_cols})') elif idx_type in {2, 3}: builder.write(f'INDEX
{idx_name}
({show_cols})') elif idx_type in == 4: builder.write(f'FULLTEXT{idx_name}
({show_cols})') else: raise ValueError(f'unsupport index type: {idx_type} for {ibd_name}/{idx_name}')Thanks for this handy tool.