'xi_events' is marked as crashed and should be repaired
Posted: Fri Sep 23, 2016 10:07 am
I have been trying to do a backup of nagiosxi using
/usr/local/nagiosxi/scripts/backup_xi.sh
It ends with this error
Backing up MySQL databases...
mysqldump: Got error: 145: Table './nagiosxi/xi_events' is marked as crashed and should be repaired when using LOCK TABLES
Error backing up MySQL database 'nagiosxi' - check the password in this script!
These are ongoing messages in /var/log/mysqld.log
160923 9:51:01 [ERROR] /usr/libexec/mysqld: Table './nagiosxi/xi_events' is marked as crashed and should be repaired
I checked the password as follows...
# mysql -uroot -p<DEFAULT> -e "show variables like 'max_connections';"
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151 |
+-----------------+-------+
Which is the same password <DEFAULT> in /usr/local/nagiosxi/var/xi-sys.cfg
Please advise...
/usr/local/nagiosxi/scripts/backup_xi.sh
It ends with this error
Backing up MySQL databases...
mysqldump: Got error: 145: Table './nagiosxi/xi_events' is marked as crashed and should be repaired when using LOCK TABLES
Error backing up MySQL database 'nagiosxi' - check the password in this script!
These are ongoing messages in /var/log/mysqld.log
160923 9:51:01 [ERROR] /usr/libexec/mysqld: Table './nagiosxi/xi_events' is marked as crashed and should be repaired
I checked the password as follows...
# mysql -uroot -p<DEFAULT> -e "show variables like 'max_connections';"
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151 |
+-----------------+-------+
Which is the same password <DEFAULT> in /usr/local/nagiosxi/var/xi-sys.cfg
Please advise...