|
|
|
|
35
|
##### With `psql`, the `PostgreSQL` interactive terminal
|
35
|
##### With `psql`, the `PostgreSQL` interactive terminal
|
36
|
|
36
|
|
37
|
sudo --user=postgres psql \
|
37
|
sudo --user=postgres psql \
|
38
|
- --command='CREATE USER tracimuser WITH PASSWORD tracimpassword;' \
|
|
|
39
|
- --command='CREATE DATABASE tracimdb OWNER TO tracimuser;'
|
|
|
40
|
-[//]: # (The following lines should only be necessary to fix permissions on an existing database:)
|
|
|
|
|
38
|
+ --command="CREATE USER tracimuser WITH PASSWORD 'tracimpassword';" \
|
|
|
39
|
+ --command="CREATE DATABASE tracimdb OWNER tracimuser;"
|
|
|
40
|
+[//]: # (The following lines are only necessary to fix permissions on an existing database:)
|
41
|
[//]: # ( sudo --user=postgres psql \)
|
41
|
[//]: # ( sudo --user=postgres psql \)
|
42
|
[//]: # ( --dbname=tracimdb \)
|
42
|
[//]: # ( --dbname=tracimdb \)
|
43
|
-[//]: # ( --command='GRANT ALL PRIVILEGES ON DATABASE tracimdb TO tracimuser;' \)
|
|
|
44
|
-[//]: # ( --command='GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO tracimuser;')
|
|
|
|
|
43
|
+[//]: # ( --command="GRANT ALL PRIVILEGES ON DATABASE tracimdb TO tracimuser;" \)
|
|
|
44
|
+[//]: # ( --command="GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO tracimuser;")
|
45
|
|
45
|
|
46
|
##### With `pgtool`
|
46
|
##### With `pgtool`
|
47
|
|
47
|
|