Name | Description
------------------------|--------------------------------
- icinga2-ido-mysql | DB IDO provider module for MySQL
- icinga2-ido-pgsql | DB IDO provider module for PostgreSQL
+ icinga2-ido-mysql | [DB IDO](#configuring-db-ido) provider module for MySQL
+ icinga2-ido-pgsql | [DB IDO](#configuring-db-ido) provider module for PostgreSQL
If you're running a distribution for which Icinga 2 packages are
not yet available you will need to use the release tarball which you
### <a id="configuring-db-ido-mysql"></a> Configuring DB IDO MySQL
+First of all you have to install the `icinga2-ido-mysql` package using your
+distribution's package manager.
+
+Debian/Ubuntu:
+
+ # apt-get install icinga2-ido-mysql
+
+RHEL/CentOS:
+
+ # yum install icinga2-ido-mysql
+
+SUSE:
+
+ # zypper install icinga2-ido-mysql
+
+
+
> **Note**
>
> Upstream Debian packages provide a database configuration wizard by default.
#### <a id="setting-up-mysql-db"></a> Setting up the MySQL database
-First of all you have to install the `icinga2-ido-mysql` package using your
-distribution's package manager. Once you have done that you can proceed with
-setting up a MySQL database for Icinga 2:
+Set up a MySQL database for Icinga 2:
# mysql -u root -p
mysql> CREATE DATABASE icinga;
-
- mysql> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
-
- mysql> quit
-
+ GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
+ quit
After creating the database you can import the Icinga 2 IDO schema using the
following command:
#### <a id="upgrading-mysql-db"></a> Upgrading the MySQL database
Check the `/usr/share/icinga2-ido-mysql/schema/upgrade` directory for an
-incremental schema upgrade file. If there isn't an upgrade file available
-there's nothing to do.
+incremental schema upgrade file.
+
+> **Note**
+>
+> If there isn't an upgrade file for your current version available there's nothing to do.
Apply all database schema upgrade files incrementially.
The Icinga 2 DB IDO module will check for the required database schema version on startup
and generate an error message if not satisfied.
+
+**Example:** You are upgrading Icinga 2 from version `2.0.2` to `2.1.0`. Look into
+the *upgrade* directory:
+
+ $ ls /usr/share/icinga2-ido-mysql/schema/upgrade/
+ 2.0.2.sql 2.1.0.sql
+
+There is a new upgrade file called `2.1.0.sql` which must be applied to your IDO database.
+
+
#### <a id="installing-ido-mysql"></a> Installing the IDO MySQL module
The package provides a new configuration file that is installed in
### <a id="configuring-db-ido-postgresql"></a> Configuring DB IDO PostgreSQL
+First of all you have to install the `icinga2-ido-pgsql` package using your
+distribution's package manager.
+
+Debian/Ubuntu:
+
+ # apt-get install icinga2-ido-pgsql
+
+RHEL/CentOS:
+
+ # yum install icinga2-ido-pgsql
+
+SUSE:
+
+ # zypper install icinga2-ido-pgsql
+
> **Note**
>
> Upstream Debian packages provide a database configuration wizard by default.
#### Setting up the PostgreSQL database
-First of all you have to install the `icinga2-ido-pgsql` package using your
-distribution's package manager. Once you have done that you can proceed with
-setting up a PostgreSQL database for Icinga 2:
+Set up a PostgreSQL database for Icinga 2:
# cd /tmp
# sudo -u postgres psql -c "CREATE ROLE icinga WITH LOGIN PASSWORD 'icinga'";
#### <a id="upgrading-postgresql-db"></a> Upgrading the PostgreSQL database
Check the `/usr/share/icinga2-ido-pgsql/schema/upgrade` directory for an
-incremental schema upgrade file. If there isn't an upgrade file available
-there's nothing to do.
+incremental schema upgrade file.
+
+> **Note**
+>
+> If there isn't an upgrade file for your current version available there's nothing to do.
Apply all database schema upgrade files incrementially.
The Icinga 2 DB IDO module will check for the required database schema version on startup
and generate an error message if not satisfied.
+**Example:** You are upgrading Icinga 2 from version `2.0.2` to `2.1.0`. Look into
+the *upgrade* directory:
+
+ $ ls /usr/share/icinga2-ido-pgsql/schema/upgrade/
+ 2.0.2.sql 2.1.0.sql
+
+There is a new upgrade file called `2.1.0.sql` which must be applied to your IDO database.
+
+
#### <a id="installing-ido-postgresql"></a> Installing the IDO PostgreSQL module
The package provides a new configuration file that is installed in