mirror of https://github.com/Icinga/icinga2.git
Merge pull request #9152 from lrupp/patch-2
Additional GRANT options for MySQL
This commit is contained in:
commit
30e1e8d3f4
|
@ -711,17 +711,20 @@ Set up a MySQL database for Icinga 2:
|
|||
# mysql -u root -p
|
||||
|
||||
CREATE DATABASE icinga;
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
|
||||
GRANT ALTER, CREATE, SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
|
||||
quit
|
||||
```
|
||||
|
||||
Please note that the example above uses the very simple password 'icinga' (in `IDENTIFIED BY 'icinga'`).
|
||||
Please choose a better password for your installation.
|
||||
|
||||
![setting up the database on CentOS 7](images/installation/mariadb-centos7.png "Setting up the database on CentOS 7")
|
||||
|
||||
After creating the database you can import the Icinga 2 IDO schema using the
|
||||
following command. Enter the root password into the prompt when asked.
|
||||
following command. Enter the icinga password into the prompt when asked.
|
||||
|
||||
```bash
|
||||
mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
|
||||
mysql -u icinga -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
|
||||
```
|
||||
|
||||
#### Enabling the IDO MySQL module <a id="enabling-ido-mysql"></a>
|
||||
|
|
Loading…
Reference in New Issue