README: Add how-to for postgresql database setup

This commit is contained in:
Alexander Fuhr 2015-06-24 13:54:28 +02:00
parent 2ea2e51e00
commit 3e54af435b
1 changed files with 11 additions and 0 deletions

View File

@ -9,12 +9,23 @@ Installation
Create Icinga Director database
-------------------------------
MySQL:
mysql -e "CREATE DATABASE director2;
GRANT SELECT, INSERT, UPDATE, DELETE ON director.* TO director@localhost
IDENTIFIED BY 'some-password';"
mysql director < schema/mysql.sql
PostgreSQL:
CREATE DATABASE director WITH ENCODING 'UTF8';
CREATE USER director WITH PASSWORD 'some-password';
GRANT ALL PRIVILEGES ON DATABASE director TO director;
psql director < schema/pgsql.sql
Configure Icinga Web 2
----------------------