MySQL定时备份

mysql-backup.bat执行文件内容:


rem *******************************Code Start*****************************

@echo off


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

C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqldump --opt -u root --password=root ccom > D:\db\ccom_%Ymd%.sql

@echo on

rem *******************************Code End*****************************


你可能感兴趣的:(MySQL定时备份)