Hi,
I was running Zabbix 5.0 on a Hyper-V VM and there is some sort of error where the history tables are stored. We want to restore the database to a new server we have setup utilizing the same versions of applications - this has already been prepared. This isn't important to us for this server, so we backed up the database without the history tables with no problem using the below command and separately backed up the config files:
mysqldump -uroot -p --single-transaction --ignore-table=zabbix.history --ignore-table=zabbix.history_uint --ignore-table=zabbix.history_text --ignore-table=zabbix.history_log --ignore-table=zabbix.history_str --ignore-table=zabbix.trends --ignore-table=zabbix.trends_uint zabbix | gzip > zabbix_backup.sql.gz
When we restore the database - minus the trend and history tables - we get errors in the GUI about the history tables. How do we rebuild the history tables, as I have only seen it referenced in procedures across guides, but can't seem to find the actual process.
Any help would be much appreciated.
I was running Zabbix 5.0 on a Hyper-V VM and there is some sort of error where the history tables are stored. We want to restore the database to a new server we have setup utilizing the same versions of applications - this has already been prepared. This isn't important to us for this server, so we backed up the database without the history tables with no problem using the below command and separately backed up the config files:
mysqldump -uroot -p --single-transaction --ignore-table=zabbix.history --ignore-table=zabbix.history_uint --ignore-table=zabbix.history_text --ignore-table=zabbix.history_log --ignore-table=zabbix.history_str --ignore-table=zabbix.trends --ignore-table=zabbix.trends_uint zabbix | gzip > zabbix_backup.sql.gz
When we restore the database - minus the trend and history tables - we get errors in the GUI about the history tables. How do we rebuild the history tables, as I have only seen it referenced in procedures across guides, but can't seem to find the actual process.
Any help would be much appreciated.
Comment