Small fixes in doc

Add mysql flush privileges, -p option for import to db and enable system service at boot
This commit is contained in:
mzac 2020-06-08 14:34:52 -04:00 committed by GitHub
parent cf35a5431e
commit 33223885dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 <a id="running-icingadb"></a>
@ -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.
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.