mysql-Learning -13-20170619-mysql Backup Recovery-xtrabackup-2

Source: Internet
Author: User
Tags mysql backup

mysql-Learning -13-20170619-mysql Backup Recovery-xtrabackup-2

"Admin" Wu Bingxi (82565387) 20:34:15
Based on Xtrabackup, you only need to know
If you need to add a backup, you can back up Binlog with compressed packaging:

Without gzip-you can also

To generate a password string:

Innobackupex--no-timestamp-s/tmp/mysql3306.sock-uroot-pwubxwubx--encrypt=aes256--encrypt-key= " 4XZKJLXEAG9IENY1EFWFDCN4LW0LHCFA "/DATA/BACKUP/DB1 Innobackupex--decrypt=aes256--encrypt-key=" 4XZKJLXEAG9IENY1EFWFDCN4LW0LHCFA "/DATA/BACKUP/DB1--remove-original

Make a backup of the database:

Recovery:

Use mysqldump Backup (back up the table structure with the-d command--no-data)

Ignoring gtid using the-F recovery Library

Clear out the wubx of the table space, after clearing out only the WUBX.FRM table structure of the file

ALTER TABLE WUBX discard tablespace;

Cp/data/backup/zst/wubx.cfg. Chown-r Mysql:mysql wubx.* Then execute the import statement and you'll see that the data is coming.

Here's what the teacher summed up: mysql>alter table TB discard tablespace;
cp/data/backup/zst/wubx.cfg.
cp/data/backup/zst/wubx.ibd.
chown-r mysql:mysql wubx.*
mysql>alter table TB import tablespace;

Support for tablespace transfer after MySQL 5.6

Today's keynote is as follows:

"Admin" Wu Bingxi (82565387) 22:28:01
1. Tar-streaming backup
"Admin" Wu Bingxi (82565387) 22:28:08
2. Remote Backup
"Admin" Wu Bingxi (82565387) 22:28:16
NC, WDT, BT
"Admin" Wu Bingxi (82565387) 22:29:22
3. Encrypted backup
"Admin" Wu Bingxi (82565387) 22:29:37
4. Backing up individual libraries and innodb table space transfers

Format of Binlog:

https://dev.mysql.com/doc/internals/en/

Binlog_event.h

mysql-Learning -13-20170619-mysql Backup Recovery-xtrabackup-2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.