Xtrabackup backup mysql "ib_logfile0isofdifferent" Error Analysis

Source: Internet
Author: User
The. ib_logfile0isofdifferent error occurred when I used the xtrabackup tool to completely back up the mysql database. The specific log information is as follows: I first searched Baidu and Google for a correct answer ..

The./ib_logfile0isofdifferent error occurred when I used the xtrabackup tool to completely back up the mysql database. The specific log information is as follows: I first searched Baidu and Google for the corresponding answer ..

The error "./ib_logfile0 is of different" is returned when you use xtrabackup to completely back up the mysql database. The specific log information is as follows:

I first searched Baidu and Google for the corresponding answer. Starting with the error log, the preceding log prompts that the log file size of the mysql database inondb is inconsistent with the innodb log file size set in the mysql configuration file.

First, check the log file size of the innodb mysql database and find that the size of the innodb log file is 5242880 bytes, that is, the log file size is 5 MB.

Next, check the innodb log file size set in the mysql configuration file. The Hong Kong virtual host and Hong Kong virtual host are found to be 16 MB, which is indeed inconsistent.

To make the log file size of mysql innodb consistent with the innodb log file size set in the mysql configuration file, it is really easy to modify the mysql configuration file innodb_log_file_size = 5 MB.

During the backup process, the following Error occurs, indicating that a logfile2 log file has been re-created, and "InnoDB: Error: log file" is displayed during the backup process. /ib_logfile2 is of different size 0 0 bytes ".

How does one log file (logfile2) Come out during backup? Modify the mysql configuration file again, and set the number of log files to 2. The Hong Kong server is rented. innodb_log_files_in_group = 3. xtrabackup will compare the log files with the mysql configuration options during Backup.

This article is from the "simple dream Chaser" blog. Please keep this source

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.