Skip to content

Instantly share code, notes, and snippets.

@Irio
Created March 1, 2012 17:50
Show Gist options
  • Save Irio/1951660 to your computer and use it in GitHub Desktop.
Save Irio/1951660 to your computer and use it in GitHub Desktop.
PostgreSQL 9.1.3 on Ubuntu 11.10
$ sudo apt-get install postgresql libpq-dev postgresql-contrib
$ sudo -u postgres createuser desired_user
$ cd /etc/init.d/
$ sudo -u postgres psql template1
template1=# ALTER USER desired_user WITH PASSWORD 'desired_password';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment