windows下数据库备份bat
@echo off
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
C:/mysql/bin/mysqldump --opt -u root --password=root dbname > E:/bak/db/dbname_%Ymd%.sql
@echo on
@echo off
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
C:/mysql/bin/mysqldump --opt -u root --password=root dbname > E:/bak/db/dbname_%Ymd%.sql
@echo on