标签:style blog class code ext color
1.给root账户授权所有sql权限grant all privileges on *.* to root@"%" identified by ".";
flush privileges;
@echo off set path=%path%;D:\Program Files\MySQL\MySQL Server 5.5\bin set 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%.sql exit
其中cmsis为要备份的数据库,当该批处理文件执行时会在f:\data下生成如cmsis_20140510_16.sql的文件
(1)程序->附件->系统工具->任务计划->添加任务计划
(2)单击下一步
Windows Server服务器端MySQL数据库自动备份,布布扣,bubuko.com
Windows Server服务器端MySQL数据库自动备份
标签:style blog class code ext color
原文地址:http://blog.csdn.net/hil2000/article/details/25506293