当前位置:网站首页>Automatic backup of MySQL database
Automatic backup of MySQL database
2022-06-28 03:39:00 【Bright in snow】
「 Blog move 」 New address : Simple books
MySQL In the database , It is useful to realize the function of automatic backup by day for specified tables .
1. Preconditions
- Installed correctly MySQL And it can start up and run automatically
- The MySQL Add the tool to the environment variable of the system .
2. Operation method
New batch file , The content is :
rem *******************************Code Start *****************************
@echo off
mysqldump -u " user name " --password=" password " " Database name " > " The absolute address of the saved file and the saved file name "
@echo on
rem ******************************* Code End *****************************My configured .bat The content of the document is :
rem *******************************Code Start *****************************
@echo off
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
mysqldump -u root --password=lml manager > C:\MySQLBackup\manager_%Ymd%.sql
@echo on
rem ******************************* Code End *****************************3. Put this .bat File is added to the system planning task
open “ Control panel ” -> “ Plan the task procedure ” -> “ Create basic tasks ”
You can set a fixed time every day to run this .bat file , It can realize automatic checking of MySQL Database backup
4. Reference material
边栏推荐
- Object类,以及__new__,__init__,__setattr__,__dict__
- 2022电工(初级)复训题库及在线模拟考试
- Etcd database source code analysis -- network layer server rafthandler between clusters
- 启牛开的证券账户是安全的吗?如何开账户呢
- matlab习题 —— 矩阵的常规运算
- Win10 如何删除系统盘大文件hiberfil.sys
- Is Guotai Junan Securities reliable? Is it safe to open a securities account?
- Typescript union type
- mysql获取当前时间是一年的第多少天
- Custom controls under WPF and adaption of controls in Grid
猜你喜欢

collections. Use of defaultdict()

ETCD数据库源码分析——集群间网络层服务端RaftHandler

资源管理、高可用与自动化(下)

Inference optimization implementation of tensorrt model

2022 electrician (elementary) recurrent training question bank and online simulation examination

文件的相对路径写法

matlab习题 —— 数据的基本处理

idea自动生成代码

Change of monitoring documents and folders of "operation and maintenance department"

大咖说·计算讲谈社|什么是东数西算要解决的核心问题?
随机推荐
Anaconda command usage
力扣每日一题-第29天-523.在区间范围统计奇数数目
Circular sliding auto adsorption UI tool that monkeys can use
idea自动生成代码
Idea auto generate code
MySQL 数据库的自动备份操作
文档问题
MySQL错误
如何给Eclips自动添加作者,时间等…
Resource management, high availability and automation (Part 2)
Necessary software tools in embedded software development
TypeScript 联合类型
Floating point and complex type of go data type (4)
matlab习题 —— 符号运算相关练习
17 `bs object Node name h3 Parent ` parents get parent node ancestor node
Go 數據類型篇(四)之浮點型與複數類型
Establishment of SSH Framework (Part I)
matlab习题 —— 数据的基本处理
What are the good practices of cloud cost optimization?
可扩展存储系统(上)