mysql - Icinga 2 中的模式版本问题

标签 mysql debian icinga

我在 Debian 上安装 icinga2 来自:

deb http://debmon.org/debmon debmon-jessie main
deb http://httpredir.debian.org/debian jessie-backports main

如这里所述:
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-mysql-db

我跑:

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/

相关文章:

mysql - 只显示来自 mysql 查询的最高结果?

php - 如何在 laravel 中创建 init db?

php - 无法连接到 MySQL 数据库 - PHP

ubuntu - Icinga2 -- 主机的 display_name 被 icingaweb2 忽略

centos - 未找到 Nagios JMX 插件 check_jmx 命令

php - 将 SQL 语句插入 PHP 变量

用于基于 ARM 的 Debian 设备的 Oracle Instant Client

linux - 在 Linux 上更快地 fork 大型进程?

c - gdb: 未定义的输出格式 "z"

ubuntu - 如何将主机添加到 Icinga2?