I'm using a batch file to back up my MySQL databases on windows. How can I save each table in an individual file? The current batch file saves all the tables into one file for each database.
Here's the batch file
FOR /D %%F IN (*) DO (
SET %%F=!%%F:@002d=-!
%mysqldumpexe% --user=%dbuser% --password=%dbpass% --databases --routines --log-error=%errorLogPath% %%F > "%backupfldr%%%F.%backuptime%.sql"
::How- Grab the list of tables inside the current database
::How- Backup current table from the current database into a.sql (database-table_name.sql)
)