HOW TO initialize PostgreSQL server

Create User Accounts

[user@localhost]$ su
[root@localhost]$ su postgres
[postgres@localhost]$

{{{[postgres@localhost]$ createuser -U postgres --createdb --no-adduser lexdb CREATE USER}}}

{{{[postgres@localhost]$ createuser -U postgres --no-createdb --no-adduser USERNAME CREATE USER}}}

Configure Access Privileges

PostgreSQL server running on local machine

{{{# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD

local all all trust host all all 127.0.0.1 255.255.255.255 trust}}}

     tcpip_socket = true

PostgreSQL server on remote machine

host    all         all        IP_ADDRESS    255.255.255.255     md5

     tcpip_socket = true

Initialize_PostgreSQL_Server (last edited 2011-10-08 21:12:16 by localhost)

(The DELPH-IN infrastructure is hosted at the University of Oslo)