Forum

xampp/mysql - creat...
 
Notifications
Clear all

xampp/mysql - create full database backup from batch file

1 Posty
1 Users
0 Reactions
2,040 Widok
0
Topic starter

xampp/mysql - create full database backup from batch file

1 Answer
0
Topic starter

Full mysql database backup with date folder code

@echo off &setlocal
for /f "tokens=1-3 delims=/" %%a in ("%date%") do md "..%%a"
for /f "tokens=1-3 delims=/" %%a in ("%date%") do set "data_folder=%%a"
C:xamppmysqlbinmysqldump --all-databases --complete-insert --add-drop-table --add-locks --allow-keywords --lock-tables --quote-names --user=root > ..%data_folder%mysql_dump.sql

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: