Another alternative
- use mysqldump only for table dump schema
- use a table with the inscription
- when you have a dump file execute it
- the whole table will be deleted and recreated
If you want to reset your auto increment,
then make changes to the dump file to reset it
if you are using linux this can be done using a bash script like
for table in $(mysql -N <<<"show tables from your_db")
do
mysql -N <<< "truncated $table"
done
source
share