Hi fellows,
after I got zabbix-server 4 running om debian10 I tried to implement it on centos7 today following this tutorial: https://www.digitalocean.com/communi...rs-on-centos-7
Everything went fine until I did:
zcat /usr/share/doc/zabbix-server-mysql-4.2.5/create.sql.gz | mysql -uzabbix -p zabbix When I tried to start zabbix-server the logfile showed me: cannot use database "zabbix": its "users" table is empty so I renewed the zabbix Database and ran the zcat command again. Now I got: : ERROR 1452 (23000) at line 2198: Cannot add or update a child row :a foreign key constraint fails (`zabbix`.`dchecks`, CONOREIGN KEY (`druleid`)STRAINT `c_dchecks_1` F REFERENCES `drules` (`druleid`) ON DELETE CASCADE) so I tried to solve it by: ALTER TABLE `zabbix`.`dchecks` -> ADD CONSTRAINT `c_dchecks_1` FOREIGN KEY (`druleid`) REFERENCES `zabbix`.`drules` (`druleid`) ON DELETE CASCADE ON UPDATE RESTRICT; what failed with: Can't create table `zabbix`.`dchecks` (errno: 121 "Duplicate key on write or update") If anybody has a proposal to solve it please let me know. Many thanks in advance Uli
after I got zabbix-server 4 running om debian10 I tried to implement it on centos7 today following this tutorial: https://www.digitalocean.com/communi...rs-on-centos-7
Everything went fine until I did:
zcat /usr/share/doc/zabbix-server-mysql-4.2.5/create.sql.gz | mysql -uzabbix -p zabbix When I tried to start zabbix-server the logfile showed me: cannot use database "zabbix": its "users" table is empty so I renewed the zabbix Database and ran the zcat command again. Now I got: : ERROR 1452 (23000) at line 2198: Cannot add or update a child row :a foreign key constraint fails (`zabbix`.`dchecks`, CONOREIGN KEY (`druleid`)STRAINT `c_dchecks_1` F REFERENCES `drules` (`druleid`) ON DELETE CASCADE) so I tried to solve it by: ALTER TABLE `zabbix`.`dchecks` -> ADD CONSTRAINT `c_dchecks_1` FOREIGN KEY (`druleid`) REFERENCES `zabbix`.`drules` (`druleid`) ON DELETE CASCADE ON UPDATE RESTRICT; what failed with: Can't create table `zabbix`.`dchecks` (errno: 121 "Duplicate key on write or update") If anybody has a proposal to solve it please let me know. Many thanks in advance Uli
Comment