From 4976e7965fcc118703b1da6548a0dfecec320bc4 Mon Sep 17 00:00:00 2001 From: RimBlock Date: Mon, 6 Oct 2014 10:06:27 +0800 Subject: [PATCH] Added DB dump batch file options to dump events and triggers as well as doing a quick (row level streaming) dump. --- Server Files/Tools/Backup_DB_sample.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server Files/Tools/Backup_DB_sample.bat b/Server Files/Tools/Backup_DB_sample.bat index a25ff2252..1a7f8f80f 100644 --- a/Server Files/Tools/Backup_DB_sample.bat +++ b/Server Files/Tools/Backup_DB_sample.bat @@ -19,7 +19,8 @@ c: cd %mysqldir% @REM dump/backup ALL database, this is all in one line -mysqldump -u %mysqluser% -p%mysqlpassword% --databases %mysqlschema% >%BackupDir%\%mysqlschema%_backup.%datestamp%.sql +mysqldump -u %mysqluser% -p%mysqlpassword% --databases %mysqlschema% --routines --events --triggers --quick >%BackupDir%\%mysqlschema%_backup.%datestamp%.sql @REM - Housekeeping forfiles -p %BackupDir% -s -m *.sql -d -%housekeepafter% -c "cmd /c del @path" +