Skip to content

Instantly share code, notes, and snippets.

@zackdever
Created January 18, 2012 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackdever/1630874 to your computer and use it in GitHub Desktop.
Save zackdever/1630874 to your computer and use it in GitHub Desktop.
create new postgresql db and user for use with django
sudo -u postgres createuser -P username
sudo -u postgres psql template1
CREATE DATABASE dbname OWNER username ENCODING ‘UTF8’;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment