脚本如下,把脚本制定成计划任务即可
@echo off title 数据库备份 set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%" "E:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump" --opt -u root --password=ROOT erdpc > F:\备份\数据库\erdpc_%Ymd%.sql
2022-08-21 10:32:35
脚本如下,把脚本制定成计划任务即可
@echo off title 数据库备份 set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%" "E:\Program Files\MySQL\MySQL Server 5.5\bin\mysqldump" --opt -u root --password=ROOT erdpc > F:\备份\数据库\erdpc_%Ymd%.sql