diff --git a/Doc/Sda1/prerequisites.xml b/Doc/Sda1/prerequisites.xml index 8908ad097611aeb13262f2b82c0079a1da568fca..9795605196e701709e5949890b7b1f049c5b61c7 100644 --- a/Doc/Sda1/prerequisites.xml +++ b/Doc/Sda1/prerequisites.xml @@ -213,9 +213,16 @@ linkends="sda1_fig_postgresqlInstallUserPW-1" xml:id="sda1_fig_postgresqlInstallUserPW-1-co"/> +#> su - postgres -c "createuser --interactive" +Enter name of role to add: hdmuser +Shall the new role be a superuser? (y/n) n +Shall the new role be allowed to create databases? (y/n) n +Shall the new role be allowed to create more new roles? (y/n) n + su - postgres -c "PGPASSWORD=XYZ createdb --owner hdmuser hdm" <co linkends="sda1_fig_postgresqlInstallUserPW-2" xml:id="sda1_fig_postgresqlInstallUserPW-2-co"/> +alter role hdmuser WITH PASSWORD 'XYZ'; PGPASSWORD=XYZ psql -h localhost --username=hdmuser -d hdm <co linkends="sda1_fig_postgresqlInstallUserPW-3"