Rumah > Artikel > pangkalan data > Windows Server服务器端MySQL数据库自动备份_MySQL
grant all privileges on *.* to root@"%" identified by ".";
flush privileges;2.建立bat批处理文件
@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)单击下一步