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

Commit

Permalink
Double sudo is needed so it was re-added
Browse files Browse the repository at this point in the history
  • Loading branch information
bradydowling committed Jan 27, 2015
1 parent 622d204 commit c9bca5d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/persistence/setting_up_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ PostgreSQL comes preinstalled on every Cloud9 workspace, yay.

### Set the "postgres" user password

$ sudo -u postgres psql
$ sudo sudo -u postgres psql
psql (9.3.4, server 9.3.5)
Type "help" for help.

postgres=# \password
Enter new password:
Enter it again:
Enter new password:
Enter it again:
postgres=# \q

## Connect to the service

$ sudo -u postgres psql
$ sudo sudo -u postgres psql

## Create a PostgreSQL database

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

$ sudo -u postgres psql
$ sudo sudo -u postgres psql
postgres=# create database "groceries";

## List all databases

$ sudo -u postgres psql
$ sudo sudo -u postgres psql
postgres=# \list

1 comment on commit c9bca5d

@bradydowling
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For right now, I don't know why this works but it doesn't work without it. We'll have to figure out why the double sudo is required but it just works.

Please sign in to comment.