Skip to content

Commit

Permalink
Update database.md (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus authored Oct 24, 2024
1 parent 5f8fa98 commit fb86358
Showing 1 changed file with 9 additions and 2 deletions.
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.

0 comments on commit fb86358

Please sign in to comment.