Skip to content

Instantly share code, notes, and snippets.

@dfasolin
Created May 26, 2014 01:25
Show Gist options
  • Save dfasolin/4e73c159d0d73538ff06 to your computer and use it in GitHub Desktop.
Save dfasolin/4e73c159d0d73538ff06 to your computer and use it in GitHub Desktop.
Login and Create Database in Postgres
# su - postgres
$ createdb mydb
$ psql -s mydb
# create user someuser password 'somepassword';
# GRANT ALL PRIVILEGES ON DATABASE mydb TO someuser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment