Update database setup guide and introduce password for DB connection

This commit is contained in:
2019-05-05 11:58:09 +02:00
parent ab3f08356e
commit 6c7a418828
2 changed files with 11 additions and 4 deletions

View File

@@ -23,8 +23,14 @@
------------------
First install PostgreSQL. Then create a user for financer:
sudo -iu postgres
createuser --interactive
Enter 'financer' as role name and make it superuser. Then create the actual database:
createuser -P -s -e financer
This creates a user named 'financer' and prompts for the creation of a password for this user. The expected default
password is 'financer'. Then create the actual database:
createdb financer
Naming both, the user and the database, 'financer' is the expected default. If you want any other names you need
to adjust the database connection settings of the financer application.
Using 'financer' for the name of the user, its password and the database name is the expected default. If you want
any other values you need to adjust the database connection settings of the financer application.
Then you need to grant the created user permission to the created database:
psql
GRANT ALL PRIVILEGES ON DATABASE "financer" to financer;
\q
exit