Skip to content

Commit fb86358

Browse files
authored
Update database.md (#637)
1 parent 5f8fa98 commit fb86358

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crowdsec-docs/docs/local_api/database.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ For `SQLite`, there is nothing to do to make it work with CrowdSec. For `MySQL`,
1111
Please refer to [ent.](https://entgo.io/) [supported database](https://entgo.io/docs/dialects/). At the time of writing :
1212

1313
- MySQL `5.6.35`, `5.7.26` and `8`
14-
- MariaDB `10.2` and latest
15-
- PostgreSQL `10`, `11` and `12`
14+
- MariaDB `10.2`, `10.3` and latest
15+
- PostgreSQL `11`, `12`, `13`, `14` and `15`
1616
- SQLite
1717
- Gremlin
1818

@@ -49,6 +49,13 @@ postgres=# ALTER SCHEMA public owner to crowdsec;
4949
postgres=# GRANT ALL PRIVILEGES ON DATABASE crowdsec TO crowdsec;
5050
```
5151

52+
If you are running a version of PostgreSQL >= 15, you will also need to grant permission to create objects in the `public` schema:
53+
54+
```
55+
postgres=# \c crowdsec
56+
postgres=# GRANT CREATE on SCHEMA public TO crowdsec;
57+
```
58+
5259
Then edit `/etc/crowdsec/config.yaml` to update the [`db_config`](/configuration/crowdsec_configuration.md#db_config) part.
5360

5461
You can now start or restart CrowdSec.

0 commit comments

Comments
 (0)