标签:mysql
新建一个bak文件,添加如下代码:
@echo mysqldump热备数据,存储位置:d:\bak_当前时间
@echo off
c:
cd D:\mysql\MySQL Server 5.5\bin
set year=%date:~0,4%
set month=%date:~5,2%
set day=%date:~8,2%
set filename_db=bak_%year%%month%%day%_db.sql
mysqldump -h127.0.0.1 -uroot -plu --port=3306 --opt -R db -e --max_allowed_packet=16777216 --net_buffer_length=16384>E:\backup\%
filename_tdxdb%
@echo on
@echo mysql备份完成
pause
本文出自 “浅浅诗三行” 博客,请务必保留此出处http://3poetry.blog.51cto.com/11920015/1834288
标签:mysql
原文地址:http://3poetry.blog.51cto.com/11920015/1834288