How can I dump each mysql table separately with mysqldump?
Background: I want to track those dumps with git and using the pre-commit hook
Example: I have a s
This should work in a shell:
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