我在 Debian 上安装 icinga2 来自:
deb http://debmon.org/debmon debmon-jessie main
deb http://httpredir.debian.org/debian jessie-backports main
我跑:
apt-get install icinga2-ido-mysql
apt-get install icingaweb2
并进行 self 配置。
现在,我正在访问 http://localhost/icingaweb2/setup
在数据库配置页面上,它给了我:
The database you've configured to use for Icinga Web 2 seems to be the one >of Icinga. Please be aware that this database configuration is supposed to >be used for Icinga Web 2's configuration and that it is highly recommended >to not mix different schemas in the same database. If this is intentional, >you can skip the validation and ignore this warning. If not, please provide >a different database.
我手动运行数据库配置:
mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
按照手册要求,给出新的数据库名称,得到同样的错误...
在 GitHub 的项目部分,DbResourcePage.php 的第 133 行出现错误。
有人可以建议我做什么吗?
最佳答案
尝试更新 icingaweb2 架构:
mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/icinga_web.sql
希望这对你有帮助。
干杯
关于mysql - Icinga 2 中的模式版本问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37568098/