From fb86358bcefca0e8de0a800f94b171b67560c035 Mon Sep 17 00:00:00 2001 From: blotus Date: Thu, 24 Oct 2024 15:36:41 +0200 Subject: [PATCH] Update database.md (#637) --- crowdsec-docs/docs/local_api/database.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crowdsec-docs/docs/local_api/database.md b/crowdsec-docs/docs/local_api/database.md index 8ec5528e1..9da286807 100644 --- a/crowdsec-docs/docs/local_api/database.md +++ b/crowdsec-docs/docs/local_api/database.md @@ -11,8 +11,8 @@ For `SQLite`, there is nothing to do to make it work with CrowdSec. For `MySQL`, Please refer to [ent.](https://entgo.io/) [supported database](https://entgo.io/docs/dialects/). At the time of writing : - MySQL `5.6.35`, `5.7.26` and `8` - - MariaDB `10.2` and latest - - PostgreSQL `10`, `11` and `12` + - MariaDB `10.2`, `10.3` and latest + - PostgreSQL `11`, `12`, `13`, `14` and `15` - SQLite - Gremlin @@ -49,6 +49,13 @@ postgres=# ALTER SCHEMA public owner to crowdsec; postgres=# GRANT ALL PRIVILEGES ON DATABASE crowdsec TO crowdsec; ``` +If you are running a version of PostgreSQL >= 15, you will also need to grant permission to create objects in the `public` schema: + +``` +postgres=# \c crowdsec +postgres=# GRANT CREATE on SCHEMA public TO crowdsec; +``` + Then edit `/etc/crowdsec/config.yaml` to update the [`db_config`](/configuration/crowdsec_configuration.md#db_config) part. You can now start or restart CrowdSec.