Hello,
I have been working on migrating an old Zabbix 5.4 server (hosted on Ubuntu 20.04) to the Zabbix 7.0 LTS appliance image. The new server was easy to setup and I was able to transfer data from my /etc/zabbix and /etc/php. I first ran bzip2 -dk "/var/lib/mysql/zabbix.bz2" | mysql -u root zabbix -p
and got the old DB imported into the appliance.
I don't have the right DB version since the front end gives me an error confirming the output of this command: SELECT * FROM dbversion;
+-------------+-----------+----------+
| dbversionid | mandatory | optional |
+-------------+-----------+----------+
| 1 | 6010048 | 6010048 |
+-------------+-----------+----------+
I did not see any action items in this document so I went onto Primary Key migration steps: https://www.zabbix.com/documentation...rade_notes_700
The output from this Primary key migration command ran successfully:
//https://www.zabbix.com/documentation/current/en/manual/appendix/install/db_primary_keys#post-migration
mysql -uroot -p zabbix < /usr/share/zabbix-sql-scripts/mysql/option-patches/history_upgrade_prepare.sql
The result from these csv export and import command were 0 rows affected:
LOAD DATA INFILE '/var/lib/mysql/migrate/history_log.csv' IGNORE INTO TABLE history_log FIELDS TERMINATED BY ',' ESCAPED BY '"' LINES TERMINATED BY '\n';
Query OK, 0 rows affected (0.00 sec)
Records: 0 Deleted: 0 Skipped: 0 Warnings: 0
Thanks for any help!
I have been working on migrating an old Zabbix 5.4 server (hosted on Ubuntu 20.04) to the Zabbix 7.0 LTS appliance image. The new server was easy to setup and I was able to transfer data from my /etc/zabbix and /etc/php. I first ran bzip2 -dk "/var/lib/mysql/zabbix.bz2" | mysql -u root zabbix -p
and got the old DB imported into the appliance.
I don't have the right DB version since the front end gives me an error confirming the output of this command: SELECT * FROM dbversion;
+-------------+-----------+----------+
| dbversionid | mandatory | optional |
+-------------+-----------+----------+
| 1 | 6010048 | 6010048 |
+-------------+-----------+----------+
I did not see any action items in this document so I went onto Primary Key migration steps: https://www.zabbix.com/documentation...rade_notes_700
The output from this Primary key migration command ran successfully:
//https://www.zabbix.com/documentation/current/en/manual/appendix/install/db_primary_keys#post-migration
mysql -uroot -p zabbix < /usr/share/zabbix-sql-scripts/mysql/option-patches/history_upgrade_prepare.sql
The result from these csv export and import command were 0 rows affected:
LOAD DATA INFILE '/var/lib/mysql/migrate/history_log.csv' IGNORE INTO TABLE history_log FIELDS TERMINATED BY ',' ESCAPED BY '"' LINES TERMINATED BY '\n';
Query OK, 0 rows affected (0.00 sec)
Records: 0 Deleted: 0 Skipped: 0 Warnings: 0
Thanks for any help!
Comment