Skip to content

Instantly share code, notes, and snippets.

@jeroenbourgois
Created August 29, 2012 21:03
Show Gist options
  • Save jeroenbourgois/3518933 to your computer and use it in GitHub Desktop.
Save jeroenbourgois/3518933 to your computer and use it in GitHub Desktop.
postgres setup on the linode
sudo su postgres
psql
postgres=# create role askbot with createdb login encrypted password 'askbot';
# --> CREATE ROLE
postgres=# create database askbot with owner=askbot;
--> CREATE DATABASE
# the pg_hba.conf is located at
/etc/postgresql/9.1/main/pg_hba.conf
# add row as stated in askbot docs
# values according above
local askbot askbot md5
# (re)start postgres server
/etc/init.d/postgresql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment