@echo off set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"C:\MySQL\bin\mysqldump --opt -u root --password=123456 bbs > D:\dbbackup\bbs%Ymd%.sql@echo on来源:51CTO作者:华仔的博客链接:https://blog.51cto.com/hzcto/2458966 标签 mysqldump mysql date bbs