msyql定时按日期备份批处理_MySQL
Jun 01, 2016 pm 01:28 PMbitsCN.com
msyql定时按日期备份批处理
bat 内容
@echo start backup program
@rem 时间格式会有变化,这里可能出问题
@set dateString=%date:~0,4%%date:~5,2%%date:~8,2%
@echo %date%
@echo %dateString%
@set runTime=1
if exist e:/mysqlBakup/web%dateString%.sql (echo file exists) else mysqldump -uroot -p123456 --default-character-set=utf8 web > e:/mysqlBakup/web%dateString%.sql
定时功能使用windows 自带的“任务计划”就不错。
“开始”>>“设置”>>“控制面板”>>“任务计划”>>“添加任务计划”
bitsCN.com
Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Reduce the use of MySQL memory in Docker

How do you alter a table in MySQL using the ALTER TABLE statement?

How to solve the problem of mysql cannot open shared library

What is SQLite? Comprehensive overview

Run MySQl in Linux (with/without podman container with phpmyadmin)

Running multiple MySQL versions on MacOS: A step-by-step guide

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?

How do I configure SSL/TLS encryption for MySQL connections?
