备份mysql脚本

@echo off

set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"

E:\Study\software_design\php_web\env\wamp64\bin\mysql\mysql5.7.14\bin\mysqldump -u root --databases test laravue > E:\db_backup\bbs_%Ymd%.sql

@echo on


%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%

推荐阅读更多精彩内容