Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions crowdsec-docs/docs/local_api/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Loading