Changeset 713 for branches/PublicaMundi_David-devel/docs/kernel
- Timestamp:
- Jun 30, 2015, 5:45:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/docs/kernel/configuration.rst
r710 r713 2 2 3 3 ZOO-Kernel configuration 4 ================= 4 ======================== 5 5 6 6 Main configuration file … … 166 166 For instance, adding the following in the Service source code : 167 167 168 .. code -block:: python168 .. code:: python 169 169 170 170 conf["lenv"]["cookie"]="XXX=XXX1000000; path=/" … … 176 176 value stored before the Service execution. 177 177 178 179 database section 180 ............................... 181 182 The database section allows to configure the ZOO-Kernel optional 183 database support. 178 .. _zoo_activate_db_backend: 179 180 Database section 181 ............................... 182 183 The database section allows to configure the 184 :ref:`ZOO-Kernel optional database support <zoo_install_db_backend>`. 184 185 185 186 .. code-block:: guess … … 193 194 schema=public 194 195 195 This will generate strings to be passed to GDAL: 196 197 .. code-block:: 196 This will generate strings to be passed to GDAL to connect the 197 database server: 198 199 .. code-block:: guess 198 200 199 <type>:host=<host> port=<port> user=<user> dbname=<dbname> 200 201 .. code-block:: 202 203 PG:"dbname='zoo_project' host='127.0.0.' port='5432' user='x' password='y'" 201 <type>:host=<host> port=<port> user=<user> dbname=<dbname> 202 203 204 With the previous database section, it will give the following: 205 206 .. code-block:: guess 207 208 PG:"dbname=zoo_project host=127.0.0.1 port=5432 user=username" 209 210 .. _zoo_create_db_backend: 211 212 To create a new database to be used by the ZOO-Kernel, you have 213 to load the `schema.sql 214 <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql>`_ 215 file. For instance, you may run the following: 216 217 .. code:: 218 219 createdb zoo_project 220 psql zoo_project -f zoo-project/zoo-kernel/sql/schema.sql 221 222 .. note:: 223 You can choose another schema to store ZOO-Kernel specific 224 informations. In such a case, you would need to edit the 225 schema.sql file to uncomment line `33 226 <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql#L33>`_ 227 and `34 228 <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel/sql/schema.sql#L34>`_. 229 230 204 231 205 232
Note: See TracChangeset
for help on using the changeset viewer.