While restoring the Nagios XI using backup we are getting below error..
ERROR 1010 (HY000) at line 22: Error dropping database (can't rmdir './nagios/', errno: 17)
Error restoring MySQL database 'nagios' - check the password in this script!
Backup taken on server using /usr/local/nagiosxi/scripts/backup_xi.sh
after that on same server using same backup created by above script when restoring it /usr/local/nagiosxi/scripts/restore_xi.sh /store/backups/nagiosxi/1529444444.tar.gz we are getting above error.
backup and restore procedure are done by root user.
Able to login in mysql using default pass.
Code: Select all
[nagios@usa0300lv725 ~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 57492446
Server version: 5.1.73-log Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Nagios XI - 2014R2.7