当前位置:网站首页>Scheduled backup of MySQL database under Windows system
Scheduled backup of MySQL database under Windows system
2022-07-28 20:24:00 【Code slave was born to know only to move forward~】
Catalog
2、 Create timed task execution
2.3 Fill in the trigger and task execution time
We all know that data is priceless , If the data is not backed up , It's like letting data run naked , Once the server goes wrong , Only cry . The following is an introduction to mysql Automatic backup of database , You can choose where to store the backup data according to the situation .
1、 Create script
Create a new one txt file , Then change the suffix to bat, The name is backupDB.bat
@echo off
set h=%time:~0,2%
set h=%h: =0%
set hhmiss=%date:~0,4%%date:~5,2%%date:~8,2%%h%%time:~3,2%%time:~6,2%
set "folder=%date:~0,4%%date:~5,2%%date:~8,2%"
:: Automatically create the current day folder (dbBack This folder needs to be created by yourself )
if not exist D:\dbBack\%folder% (md D:\dbBack\%folder%)
::(mysql route )\bin\mysqldump --opt -u Database account -p Database password Database name > Output address
C:\"Program Files"\MySQL\"MySQL Server 5.7"\bin\mysqldump --opt -uroot -proot tqf_test > D:\dbBack\%folder%\tqf_test_%hhmiss%.sql
@echo on
:: The formal operating environment pause Get rid of , Otherwise cmd The black window will remain
::pauseThe actual situation of the storage path , You can double-click directly bat File run , You can see that the database is backed up to the file of the day
2、 Create timed task execution
2.1 Enter computer management

2.2 Create tasks
2.3 Fill in the trigger and task execution time

2.4 Add execution script file

边栏推荐
- 8. Compilation errors of C language and Chinese explanation
- 【CodeForces】Educational Codeforces Round 132 (Rated for Div. 2)
- C language functions and pointers
- Introduction to seven kinds of polling (practice link attached)
- C language pointer and two-dimensional array
- Linxu 【权限,粘滞位】
- JVM(二十四) -- 性能监控与调优(五) -- 分析GC日志
- Multi-Modal Knowledge Graph Construction and Application: A Survey
- flask_ Mail source code error
- 3、 Are formal and actual parameters in a programming language variables?
猜你喜欢
![[C language] Fibonacci sequence [recursion and iteration]](/img/02/6cff776db583f1b149686e15649d41.png)
[C language] Fibonacci sequence [recursion and iteration]

七种轮询介绍(后附实践链接)

【CodeForces】Educational Codeforces Round 132 (Rated for Div. 2)
![[C language] summary of methods for solving the greatest common divisor](/img/38/3a099948ebf51fd0da3076f71f9dad.png)
[C language] summary of methods for solving the greatest common divisor

Other IPS cannot connect to the local redis problem solving and redis installation

Advanced notes (Part 2)

Reverse string
![[C language] 5000 word super detailed explanation of various operations of the sequence table](/img/3b/932526e96ef14df8a321048e9c14b4.png)
[C language] 5000 word super detailed explanation of various operations of the sequence table

zfoo增加类似于mydog的路由

Array out of bounds
随机推荐
Raspberry connects EC20 for PPP dialing
local/chain/run_ tdnn.sh:
Simple example of C language 1
Implementation of strcat in C language
Store and guarantee rancher data based on Minio objects
XOR operation and its usage
GRU神经网络
MySQL startup error 1607 unexpected process termination
Windows系统下Mysql数据库定时备份
[experiment sharing] CCIE BGP reflector experiment
JVM (24) -- performance monitoring and tuning (5) -- Analyzing GC logs
Durham High Lord (classic DP)
Raspberry pie uses the command line to configure WiFi connections
83. (cesium home) how the cesium example works
C language implementation of strncpy
【pytorch】LSTM神经网络
字符设备驱动结构
Usage of const and assert
Power Bi 2021 calendar DAX code
[C language] print pattern summary
