Skip to content

Commit

Permalink
Update postgresql instructions (#343)
Browse files Browse the repository at this point in the history
Postgres 15 does not allow creation of tables in `public` (default)  schema without  super-user access rights. `crowdsec` has to be made the owner of the public schema first. See https://stackoverflow.com/questions/74110708/postgres-15-permission-denied-for-schema-public
  • Loading branch information
jarppiko authored Nov 6, 2023
1 parent aac3f30 commit 5c58a5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crowdsec-docs/docs/local_api/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Connect to your `PostgreSQL` server and run the following commands:
```
postgres=# CREATE DATABASE crowdsec;
postgres=# CREATE USER crowdsec WITH PASSWORD '<password>';
postgres=# ALTER SCHEMA public owner to crowdsec;
postgres=# GRANT ALL PRIVILEGES ON DATABASE crowdsec TO crowdsec;
```

Expand Down

0 comments on commit 5c58a5f

Please sign in to comment.