Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of errors in mysql recovery with innobackupex for full backup

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article is to share with you the content of an example analysis of errors in full backup recovery of mysql with innobackupex. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Problem description: using innobackupex to restore mysql for full backup.

Execute the following command:

[mysql@mysqlIns mysql] $innobackupex-- defaults-file=/var/lib/mysql/my.cnf-- apply-log / var/lib/mysql/backupdir/2016-08-17 17-33-35

Error message: innobackupex: Error: no 'innodb_data_file_path' option in group' mysqld' in server configuration file'/ var/lib/mysql/my.cnf' at / home/mysql/percona-xtrabackup-2.2.12-Linux-x86_64/bin/innobackupex line 4545.

Second, the error message is obvious: the'/ var/lib/mysql/my.cnf file does not have the option innodb_data_file_path. After I added this option, I still reported the same error.

It was later found that there was an error in the recovery directory / var/lib/mysql/backupdir/2016-08-17017-33-35. So it is corrected as the following command:

[mysql@mysqlIns mysql] $innobackupex-- defaults-file=/var/lib/mysql/my.cnf-- apply-log / var/lib/mysql_bak2/backupdir/2016-08-17 17-33-35

There are no mistakes after correction.

Third, the error prompt of innobackupex is not accurate and needs to be improved.

Thank you for reading! On "using innobackupex for full backup recovery mysql error example analysis" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report