Skip to content

Instantly share code, notes, and snippets.

@Burning-Chai
Created May 28, 2016 07:28
Show Gist options
  • Save Burning-Chai/2af4fcd9fab6abe64bece77a037729fd to your computer and use it in GitHub Desktop.
Save Burning-Chai/2af4fcd9fab6abe64bece77a037729fd to your computer and use it in GitHub Desktop.
$ sudo su - postgres -c 'psql'

postgres=# create database <database name>;
postgres=# create user <user name> password '<password>';
postgres=# alter database <database name> owner to <user name>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment