-
Notifications
You must be signed in to change notification settings - Fork 19
Postgresql Setup
bougyman edited this page May 19, 2011
·
5 revisions
- yaourt, or the AUR helper of your choice, examples will use yaourt.
- Arch Linux install
- Sudo installed and configured to allow youruser access
<youruser@yourhost ~>$ yaourt -Syu --aur
<youruser@yourhost ~>$ yaourt -S postgresql
<youruser@yourhost ~>$ rvm use 1.9.2
<youruser@yourhost ~>$ gem i pg
/etc/rc.d/postgresql start
<youruser@yourhost ~>$ createuser -U postgres -P callcenter
<youruser@yourhost ~>$ createdb -U postgres -O tcc
<youruser@yourhost ~>$ vim ~/.tccenv/TCC\_DB
<youruser@yourhost ~>$ cat ~/.tccenv/TCC\_DB
postgres://callcenter@localhost/tiny_call_center
This should be the URI to the database created in the last step
[CallCenter]
Description=Test to Callcenter
Driver=PostgreSQL
Trace=Yes
TraceFile=sql.log
Database=callcenter
Servername=localhost
UserName=callcenter
Password=the_db_password
Port=5432
Protocol=6.4
ReadOnly=No
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No
ConnSettings=
[PostgreSQL]
Description=PostgreSQL driver for Linux & Win32
Driver=/usr/lib/psqlodbcw.so
Setup=/usr/lib/psqlodbcw.so
UsageCount=1
Continue with Runit-Setup at Set up Databases