Update Database Privilege command for PostgreSQL

The updated command will make Netbox work with PostgreSQL 15.
This commit is contained in:
Navjot Singh 2023-01-18 02:02:10 +05:30 committed by GitHub
parent 9e09e46700
commit cf06926ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,9 @@ sudo -u postgres psql
Within the shell, enter the following commands to create the database and user (role), substituting your own value for the password: Within the shell, enter the following commands to create the database and user (role), substituting your own value for the password:
```postgresql ```postgresql
CREATE DATABASE netbox;
CREATE USER netbox WITH PASSWORD 'J5brHrAXFLQSif0K'; CREATE USER netbox WITH PASSWORD 'J5brHrAXFLQSif0K';
GRANT ALL PRIVILEGES ON DATABASE netbox TO netbox; CREATE DATABASE netbox;
ALTER DATABASE netbox OWNER TO netbox;
``` ```
!!! danger "Use a strong password" !!! danger "Use a strong password"