Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit e3aecca

Browse files
author
Ivar Pruijn
committed
Merge pull request #163 from c9/revert_postgresql_changes
Double sudo is needed so it was re-added
2 parents 622d204 + c9bca5d commit e3aecca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/persistence/setting_up_postgresql.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ PostgreSQL comes preinstalled on every Cloud9 workspace, yay.
1010

1111
### Set the "postgres" user password
1212

13-
$ sudo -u postgres psql
13+
$ sudo sudo -u postgres psql
1414
psql (9.3.4, server 9.3.5)
1515
Type "help" for help.
16-
16+
1717
postgres=# \password
18-
Enter new password:
19-
Enter it again:
18+
Enter new password:
19+
Enter it again:
2020
postgres=# \q
2121

2222
## Connect to the service
2323

24-
$ sudo -u postgres psql
24+
$ sudo sudo -u postgres psql
2525

2626
## Create a PostgreSQL database
2727

2828
Make sure you have logged into the PostgreSQL terminal and then you can just run:
2929

30-
$ sudo -u postgres psql
30+
$ sudo sudo -u postgres psql
3131
postgres=# create database "groceries";
32-
32+
3333
## List all databases
3434

35-
$ sudo -u postgres psql
35+
$ sudo sudo -u postgres psql
3636
postgres=# \list

0 commit comments

Comments
 (0)