grant all privileges on *.* to root@"%" identified by ".";
flush privileges;
@echo offset path=%path%;D:/Program Files/MySQL/MySQL Server 5.5/binset y=%date:~0,4%set m=%date:~5,2%set d=%date:~8,2%set h=%time:~0,2%set cdate=%y%%m%%d%_%h%mysqldump -h 127.0.0.1 -u root --password=***** -e -R --database cmsis > f:/data/cmsis_%cdate%.sqlexit
其中cmsis为要备份的数据库,当该批处理文件执行时会在f:/data下生成如cmsis_20140510_16.sql的文件
(1)程序->附件->系统工具->任务计划->添加任务计划
(2)单击下一步
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com