Created
August 29, 2012 21:03
-
-
Save jeroenbourgois/3518933 to your computer and use it in GitHub Desktop.
postgres setup on the linode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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