Browse Source

Adjusts PostgreSQL commands

Adrien Panay 7 years ago
parent
commit
de8190b736
1 changed files with 5 additions and 5 deletions
  1. 5 5
      doc/database.md

+ 5 - 5
doc/database.md View File

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