当前位置:网站首页>MySQL log management, backup and recovery of databases (2)
MySQL log management, backup and recovery of databases (2)
2022-06-30 10:16:00 【thengsd】
Catalog
One 、 Basic commands for database cold backup and recovery and full backup and recovery
1、 Physical cold backup and recovery
2、mysqldump Backup and recovery
1、 Full backup of one or more complete libraries ( Including all the tables )
2、 Full backup MySQL All libraries in the server
3、 Full backup of some tables in the specified library
4、 View backup files
3、MySQL Complete recovery
1、 Recover database
2、 Restore data table
Two 、MySQL Methods of incremental backup and recovery
1、MySQL Incremental backup
1、 Turn on binary log function
2、 The database or table can be fully backed up every week
- This timed task can be combined crontab -e Planned tasks to perform
3、 Incremental backup operations can be performed every day , Generate a new binary log file ( for example mysql-bin.000002)
4、 Insert new data , To simulate the addition or change of data
5、 Generate a new binary log file again
6、 View the contents of the binary log file
2、MySQL Incremental recovery
1、 General recovery
Simulate recovery steps for all lost data
2、 Breakpoint recovery
Only restore to the location point is “628” Previous data , I.e. no recovery “id=7” The data of
Restore only “id=7” The data of , skip “id=6” The data of
(2) Based on point in time recovery
边栏推荐
猜你喜欢
MIT-6874-Deep Learning in the Life Sciences Week4
JS get the substring of the specified character position and the specified character position interval of the specified string [simple and detailed]
Flume learning 4
Xinguan has no lover, and all the people benefit from loving deeds to warm the world -- donation to the public welfare action of Shangqiu children's welfare home
Rider does not prompt after opening unity script
Js获取指定字符串指定字符位置&指定字符位置区间的子串【简单详细】
MIT-6874-Deep Learning in the Life Sciences Week5
Article content cannot be copied
Appium automation test foundation - ADB shell command
NLopt--非线性优化--原理介绍及使用方法
随机推荐
机械臂速成小指南(四):机械臂关键部件之减速机
长城数艺数字藏品平台发布创世徽章
IDC released the report on China's software defined storage and hyper convergence market in the fourth quarter of 2020, and smartx hyper convergence software ranked first in the financial industry
Shell script functions
Some domestic image sources
1033 To Fill or Not to Fill
keras ‘InputLayer‘ object is not iterable
Detailed explanation of SolidWorks mass characteristics (inertia tensor, moment of inertia, inertia spindle)
GNN hands on practice (II): reproduction graph attention network gat
[JVM] brief introduction to CMS
How do databases go to the enterprise cloud? Click to view the answer
Magnetic levitation 3D lamp
AttributeError: ‘Version‘ object has no attribute ‘major‘
机器人系统动力学——惯性参数
Stack Title: String decoding
Quick completion guide for manipulator (4): reducer of key components of manipulator
train_ de.py: error: argument --save_ steps: invalid int value: ‘$[$[889580/128/4]*10/2]‘
Brève description du collecteur d'ordures G1
Add / delete query of topic
基于强化学习的股票量化交易Automated-Stock-Trading-Ensemble-Strategy