Commit d084befdfb405d33cc922608cadb322a8d4ae283

Authored by Antonio Terceiro
1 parent 6cced7ff

Updating database configuration instructions

Showing 1 changed file with 6 additions and 8 deletions   Show diff stats
@@ -107,16 +107,14 @@ Unused modules can be disabled, for example: @@ -107,16 +107,14 @@ Unused modules can be disabled, for example:
107 107
108 3. Configuring Postgresql 108 3. Configuring Postgresql
109 109
110 - 3.1. Create a new database 110 +Change to the noosfero user, and:
111 111
112 -# createdb ejabberd 112 + $ psql noosfero_production < /path/to/noosfero/util/chat/postgresql/ejabberd.sql
113 113
  114 +where "noosfero_production" may need to be replace by the name of the
  115 +database used for noosfero.
114 116
115 - 3.2. Basic database scheme for this setup:  
116 -  
117 -# zcat /usr/share/doc/ejabberd/examples/pg.sql.gz > pg.sql  
118 -# psql ejabberd < pg.sql  
119 - 117 +This will create a new schema inside the noosfero database, called 'ejabberd'.
120 118
121 4. ODBC configuration 119 4. ODBC configuration
122 120
@@ -139,7 +137,7 @@ The following files must be created: @@ -139,7 +137,7 @@ The following files must be created:
139 ShowSystemTables= No 137 ShowSystemTables= No
140 ShowOidColumn = No 138 ShowOidColumn = No
141 FakeOidIndex = No 139 FakeOidIndex = No
142 - ConnSettings = 140 + ConnSettings = SET search_path TO ejabberd
143 141
144 * /etc/odbcinst.ini 142 * /etc/odbcinst.ini
145 143