ddcw / ibd2sql

parse mysql ibd file to sql for learn or recovery data
GNU General Public License v3.0
196 stars 55 forks source link

noob_loop #26

Open maczkojanos opened 3 months ago

maczkojanos commented 3 months ago

Hello, your script is lifesaver,

im a little bit noob: how can i use this script in a directory with many .ibd files?

Sorry but i cant figure out...

ddcw commented 3 months ago

Maybe, you can try using it with SHELL

example:

for filename in /PATH/your_dir/dbname/*;do
    python main.py ${filename} --ddl --sql > ${filename}.sql
done

Hello, your script is lifesaver,

im a little bit noob: how can i use this script in a directory with many .ibd files?

Sorry but i cant figure out...