Hi,
I want to upgrade from 1.8.10 to 2.0 and when I run the upgrade script for the database I get:
root@blnxvs02:/data/software/zabbix-2.0.0/upgrades/dbpatches/2.0/mysql# ./upgrade -p zabbix
WARNING: backup your database before performing upgrade
This is an UNSUPPORTED Zabbix upgrade script from 1.8 to 2.0 for MySQL
It does the following things:
1. Updates indexes that might require changes;
2. Patches the database from 1.8 schema to 2.0 schema;
3. Adds 'Disabled' and 'Debug' usergroup if any missing;
4. Checks for hosts not belonging to any group and adds them to one if any found.
Usage: pass required MySQL parameters to this script (like database, user, password etc).
Continue ? (y/n) y
Patching the database
Enter password:
ERROR 1452 (23000) at line 104: Cannot add or update a child row: a foreign key constraint fails (temp file operation failed)
Failed to patch Zabbix database. Restore from backup
Then I tried to patch it manually and I get:
root@blnxvs02:/data/software/zabbix-2.0.0/upgrades/dbpatches/2.0/mysql# mysql -u root -p zabbix < ./patch.sql
Enter password:
ERROR 1005 (HY000) at line 6: Can't create table 'zabbix.#sql-53a_2e5' (errno: 121)
I get the same result when I rerun the upgrade script.
What am I doing wrong ?
thanks, Verus.
I want to upgrade from 1.8.10 to 2.0 and when I run the upgrade script for the database I get:
root@blnxvs02:/data/software/zabbix-2.0.0/upgrades/dbpatches/2.0/mysql# ./upgrade -p zabbix
WARNING: backup your database before performing upgrade
This is an UNSUPPORTED Zabbix upgrade script from 1.8 to 2.0 for MySQL
It does the following things:
1. Updates indexes that might require changes;
2. Patches the database from 1.8 schema to 2.0 schema;
3. Adds 'Disabled' and 'Debug' usergroup if any missing;
4. Checks for hosts not belonging to any group and adds them to one if any found.
Usage: pass required MySQL parameters to this script (like database, user, password etc).
Continue ? (y/n) y
Patching the database
Enter password:
ERROR 1452 (23000) at line 104: Cannot add or update a child row: a foreign key constraint fails (temp file operation failed)
Failed to patch Zabbix database. Restore from backup
Then I tried to patch it manually and I get:
root@blnxvs02:/data/software/zabbix-2.0.0/upgrades/dbpatches/2.0/mysql# mysql -u root -p zabbix < ./patch.sql
Enter password:
ERROR 1005 (HY000) at line 6: Can't create table 'zabbix.#sql-53a_2e5' (errno: 121)
I get the same result when I rerun the upgrade script.
What am I doing wrong ?
thanks, Verus.
Comment