Skip to content

Instantly share code, notes, and snippets.

@josemarluedke
Created June 27, 2013 22:57
Show Gist options
  • Select an option

  • Save josemarluedke/5881143 to your computer and use it in GitHub Desktop.

Select an option

Save josemarluedke/5881143 to your computer and use it in GitHub Desktop.
Install and create user on PostgreSQL
$ 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