From 33223885dcaa55ec84794fc84d2f6f8bddf48215 Mon Sep 17 00:00:00 2001 From: mzac Date: Mon, 8 Jun 2020 14:34:52 -0400 Subject: [PATCH] Small fixes in doc Add mysql flush privileges, -p option for import to db and enable system service at boot --- doc/02-Installation.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/02-Installation.md b/doc/02-Installation.md index ef04f59f..b027e5b3 100644 --- a/doc/02-Installation.md +++ b/doc/02-Installation.md @@ -169,6 +169,7 @@ Set up a MySQL database for Icinga DB: CREATE DATABASE icingadb; GRANT ALL ON icingadb.* TO 'icingadb'@'127.0.0.1' IDENTIFIED BY 'icingadb'; +FLUSH PRIVILEGES; quit ``` @@ -177,7 +178,7 @@ After creating the database you can import the Icinga DB schema using the following command. Enter the root password into the prompt when asked. ``` -cat /usr/share/icingadb/schema/mysql/mysql.schema.sql | mysql -uroot icingadb +cat /usr/share/icingadb/schema/mysql/mysql.schema.sql | mysql -uroot icingadb -p ``` ### Running Icinga DB @@ -191,6 +192,7 @@ icingadb -config /etc/icingadb/icingadb.ini Systemd service: ``` +systemctl enable icingadb systemctl start icingadb ``` @@ -202,4 +204,4 @@ By default `icingadb-redis` listens only on `127.0.0.1`. If you want to change t ### Icinga DB Web -Consult the [Icinga DB Web documentation](https://icinga.com/docs/icingadb/latest/icingadb-web/doc/02-Installation/) on how to connect Icinga Web 2 with Icinga DB. \ No newline at end of file +Consult the [Icinga DB Web documentation](https://icinga.com/docs/icingadb/latest/icingadb-web/doc/02-Installation/) on how to connect Icinga Web 2 with Icinga DB.