Toto by mělo fungovat v shellu:
for x in `mysql --skip-column-names -u [username] -p[password] [dbname] -e 'show tables;'`; do
mysqldump -u [username] -p[password] [db name] $x > "$x.sql"
done
Toto by mělo fungovat v shellu:
for x in `mysql --skip-column-names -u [username] -p[password] [dbname] -e 'show tables;'`; do
mysqldump -u [username] -p[password] [db name] $x > "$x.sql"
done