I am facing below error. In MySQL I have multiple databases running in MySQL. So without stop MySQL and without doing Original data directory ‘/var/lib/mysql’ empty. How can restore db backup for single database?
innobackupex-1.5.1 failed:
---------- ERROR OUTPUT from innobackupex-1.5.1 ----------
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
IMPORTANT: Please check that the copy-back run completes successfully.
At the end of a successful copy-back run innobackupex-1.5.1
prints “completed OK!”.
innobackupex-1.5.1: Error: Original data directory ‘/var/lib/mysql’ is not empty! at /usr/b
IMPORTANT: Please check that the copy-back run completes successfully.
At the end of a successful copy-back run innobackupex-1.5.1
prints “completed OK!”.
innobackupex-1.5.1: Starting to copy InnoDB system tablespace
innobackupex-1.5.1: in ‘/home/…/…/data/backups/full/2016-01-03_23-55-24’
innobackupex-1.5.1: back to original InnoDB data directory ‘/var/lib/mysql’
innobackupex-1.5.1: Error: Cannot overwrite file: /var/lib/mysql/ibdata1 at /usr/bin/innobackupex-1.5.1 line 2128.
Before restore, I have 1 full backup and 3 incremental backups and 2nd Full backup,Newly data added in every backup. After executing restore script on 1st Full backup I am getting all data to till 2nd full backup not to till 1st full backup. May I know why this behavior happening in my script. Any suggestion.