Home > Database > Mysql Tutorial > Windows停MySQL自动备份

Windows停MySQL自动备份

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:15:16
Original
996 people have browsed it

Windows下MySQL自动备份 主要步骤: 1、停止MYSQL服务。 2、复制pm项目数据文件,到“D:\MySQL_BAK\pm”下当前日期文件夹下。 3、调用winrar,将复制文件夹打包压缩。 4、删除复制文件夹,只保留压缩文件。 5、启动MYSQL服务。 @echo offnet stop mysqlxcopy

Windows下MySQL自动备份
主要步骤:
1、停止MYSQL服务。
2、复制pm项目数据文件,到“D:\MySQL_BAK\pm”下当前日期文件夹下。
3、调用winrar,将复制文件夹打包压缩。
4、删除复制文件夹,只保留压缩文件。
5、启动MYSQL服务。


@echo off

net stop mysql

xcopy "D:\MySQL\MySQL Server 5.1\data\pm\*.*" "D:\MySQL_BAK\pm\%date:~0,10%\" /y

"D:\Program Files\WinRAR\WinRAR.exe" a  -k -r -s "D:\MySQL_BAK\pm\%date:~0,10%.rar" "D:\MySQL_BAK\pm\%date:~0,10%"

rd "D:\MySQL_BAK\pm\%date:~0,10%\" /S /Q

net start mysql


Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Can Windows be learned?
From 1970-01-01 08:00:00
0
0
0
Install PHP in windows environment
From 1970-01-01 08:00:00
0
0
0
zookeeper extension under windows
From 1970-01-01 08:00:00
0
0
0
Can I play vim happily on Windows?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template