MySQL Data Backup and Recovery

Preface MySQL backup generally uses full library backup plus log backup. Depending on business needs, you can use full backup at 1 a.m. every Sunday and incremental backup every hour to recover the most complete data when MySQL fails. 1. Bilog Log Recovery MySQL's binary logs record all additions and deletions to the database (provided you hav ...

Posted by NickG21 on Fri, 10 Jan 2020 20:14:04 -0800

MySQL Full Backup and Recovery Concepts and Actual Operations

MySQL Full Backup and Recovery The main content of this paper Classification of database backups MySQL Full Backup and Recovery MySQL Differential Backup and Recovery MySQL Incremental Backup Concept MySQL backup recovery operation 1. Preface With the rapid development of office automation and e-commerce, enterprises rely more and more on in ...

Posted by The MA on Tue, 07 Jan 2020 17:26:01 -0800

MySQL database whole database backup script

MySQL database whole database backup script Author: old farmer (Liu Qihua) QQ: 46715422 Email: 46715422@qq.com Wechat: 46715422 Test operating system environment: CentOS 6/7, Debian 8/9, FreeBSD 11/12 Test MySQL version: 5.7.23 User name and password: mysql The database we need to back up this time: test Script required for backup: bac ...

Posted by ViN86 on Fri, 03 Jan 2020 21:39:36 -0800

MySQL learning -- backup and restore with mysqldump command

Absrtact: This paper mainly studied how to use mysqldump command to backup and restore database. Derived data Export all data Parameters: 1 --all-databases, -A Give an example: 1 mysqldump -h127.0.0.1 -uroot -p -A > db_back.sql Export the specified database Parameters: 1 --databases, -B Give an example: 1 mysqldump -h127.0.0.1 -uroot ...

Posted by gaza165 on Tue, 24 Dec 2019 02:58:30 -0800

MySQL - full, incremental backup and recovery (Theory + Practice)

The importance of data backup 1. In the production environment, the safety of data is very important, and any loss of data may have serious consequences 2. Causes of data loss Program error Human error Computer failure Disk failure Disaster and theft Classification of database backup From a physical and logical point of view, backup can be d ...

Posted by cyberdesi on Thu, 12 Dec 2019 00:15:01 -0800

MySQL restores single table data with full database backup data

When backing up the database, a full database backup is used, but for some reasons, the data of a table needs to be rolled back to the backup database. If the entire database needs to be rolled back, it will take time, because this table may only have tens of meters, but other tables may have tens of hundreds of G, so the tables that need to be ...

Posted by paulchen on Tue, 03 Dec 2019 11:20:06 -0800

mysql is backed up regularly under linux, and the data storage cycle is one week

The following script is from the network, and the copyright belongs to the original author (it is recommended to automatically back up at night, and use cron to plan tasks) #!/bin/bash #Save the number of backups and backup the data for 7 days number=7 #Backup save path backup_dir=/var/erp/data/mysql #date dd=`date +%Y-%m-%d-%H-%M-%S ...

Posted by azwebdiva on Sat, 02 Nov 2019 09:41:23 -0700

binlog based configuration master and slave of mysql master cluster

I. environmental preparation Main: 192.168.132.121 From: 192.168.132.122 There is data on the main database, and it is still being written. mysql> select * from darren.test; +------+ | id | +------+ | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | +------+ mysql> grant replication slave on *.* to 'replication'@'192 ...

Posted by DarkArchon on Thu, 31 Oct 2019 12:24:59 -0700

mysql's inndob engine crashes

tail-30/data/mysql/localhost.localdomain.err (log file path depends on the situation), ----------------------------------------- 161108 11:36:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var 2017-08-15 11:3 ...

Posted by jschultz on Sat, 07 Sep 2019 05:18:16 -0700

MYSQL Asynchronous Replication

Replication, replication is a highly available foundation, and the underlying layers of middleware such as MHA, mycat all rely on replication principles Master master master instance slave Slave slave Classification: default asynchronous replication, semi-synchronous replication after version 5.5, new GTID replication at version 5.6, multi-sour ...

Posted by Gast on Wed, 14 Aug 2019 22:04:55 -0700