О том куда заливается:
Пакеты заббикса родные из репозиториев федоры. Скрипты заливаю те, что распаковываются с установкой пакета:
Что мне делать с этой ошибкой?
Code:
3.8.4-202.fc18.x86_64 Fedora release 18 (Spherical Cow) httpd-2.4.4-2.fc18.x86_64 mysql-5.5.30-1.fc18.x86_64 php-5.4.13-1.fc18.x86_64 zabbix-server-mysql-2.0.5-1.fc18.x86_64 zabbix-server-2.0.5-1.fc18.x86_64 zabbix-web-mysql-2.0.5-1.fc18.noarch zabbix-web-2.0.5-1.fc18.noarch zabbix-2.0.5-1.fc18.x86_64
Code:
[root@mainws etc]# yum install zabbix-server-mysql zabbix-web-mysql
...
[root@mainws etc]# systemctl start zabbix-server
[root@mainws etc]# systemctl status zabbix-server.service
zabbix-server-mysql.service - Zabbix Server with MySQL DB
Loaded: loaded (/usr/lib/systemd/system/zabbix-server-mysql.service; disabled)
Active: active (exited) since Пт. 2013-04-19 20:28:21 MSK; 31s ago
Process: 29605 ExecStart=/usr/sbin/zabbix_server (code=exited, status=0/SUCCESS)
апр. 19 20:28:21 mainws.sbhklmfamilyhome systemd[1]: Starting Zabbix Server with MySQL DB...
апр. 19 20:28:21 mainws.sbhklmfamilyhome systemd[1]: Started Zabbix Server with MySQL DB.
[root@mainws zabbix-mysql]# cat schema.sql | mysql -u zabbix -p zabbix
Enter password:
[root@mainws zabbix-mysql]# cat data.sql | mysql -u zabbix -p zabbix
Enter password:
ERROR 1452 (23000) at line 2690: Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`sysmaps_elements`, CONSTRAINT `c_sysmaps_elements_2` FOREIGN KEY (`iconid_off`) REFERENCES `images` (`imageid`))
[root@mainws zabbix-mysql]# cat data.sql | mysql -u zabbix -p zabbix
Enter password:
ERROR 1452 (23000) at line 2690: Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`sysmaps_elements`, CONSTRAINT `c_sysmaps_elements_2` FOREIGN KEY (`iconid_off`) REFERENCES `images` (`imageid`))
[root@mainws zabbix-mysql]#