MySQL Xtrabackup preliminary interview

Source: Internet
Author: User

Hear Xtrabackup open source and powerful

2018-03-06 11:54:41

The latest version of 2.4.9 is installed on the official website.

Online articles are used Innobackupex, but the latest version has been abandoned, look at the manual "Percona-xtrabackup-2.4.9.pdf"

Simple test

Backup smooth

# xtrabackup--user=root--password=root--backup--target-dir=/home/gp/bak/--databases=xswb_90output: ... Xtrabackup:transaction Log of LSN (5387694471) to (5387694471) was copied. 180306 One:: Completed ok! 

Recovery failed

# xtrabackup--copy-back--target-dir=/home/gp/bak/
2.4. 9 5.7. - /usr/local/mysql/var is not empty!

The target directory will be empty.

Note the precautions in the manual

The restored database directory must be empty, and the recommended mysqld is the off state.

So many database operation is more complex, restore to a new directory, and then modify the my.conf point to this directory, some cumbersome did not continue to try

MySQL Xtrabackup preliminary interview

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.